title: Equivalent pyspark's json.loads function for spark-shell
body: <p>I am working with json files in spark-shell. My goal is to parse json (i.e. select specific fields) into RDD. In pyspark, I can simply use <code>json.loads</code>:</p>
  
  <pre><code>import json
  docs = (sc.textFile("file.json") 
            .map(lambda x: (json.loads(x)['url'], json.loads(x)['content'])) ) 
  </code></pre>
  
  <p>One solution I've found so far is using <code>read.json</code>. However, it returns dataframe.</p>
  
  <pre><code>val docs = sqlContext.
             read.json("file.json").
             select("url", "content").
             as[(String, String)].rdd
  </code></pre>
  
  <p>Is there any equivalent pyspark's json.loads can be implemented in spark-shell (scala)?</p>