Spark SQL: How to consume json data from a REST service as DataFrame : <p>I need to read some JSON data from a web service thats providing REST interfaces to query the data from my SPARK SQL code for analysis. I am able to read a JSON stored in the blob store and use it.</p>

<p>I was wondering what is the best way to read the data from a REST service and use it like a any other <code>DataFrame</code>. </p>

<p>BTW I am using <code>SPARK 1.6 of Linux cluster on HD insight</code> if that helps. Also would appreciate if someone can share any code snippets for the same as I am still very new to SPARK environment.</p>
