title: How to pass list of values into rdd in json+sparksql
body: <p>How to pass  list of values into 
      rdd = sqlContext.jsonFile("tmp.json")</p>
  
  <p>I have list <code>list1=["name","age","gener",........]</code></p>
  
  <pre><code>rdd_new=rdd.map(lambda x:x.(i want all list values)
  </code></pre>