title: Creating a dataframe from JSON data using PYSPARK
body: <p>I am trying to create a dataframe out of json data using pyspark module ,but not able to do,tried doing it with sqlContext.read.json but not getting proper result.</p>
  
  <p>sample json data:</p>
  
  <pre><code>{
  "userId":"rirani",
  "jobTitleName":"Developer",
  "firstName":"Romin",
  "lastName":"Irani",
  "preferredFullName":"Romin Irani",
  "employeeCode":"E1",
  "region":"CA",
  "phoneNumber":"408-1234567",
  "emailAddress":"romin.k.irani@gmail.com"
  },
  {
  "userId":"nirani",
  "jobTitleName":"Developer",
  "firstName":"Neil",
  "lastName":"Irani",
  "preferredFullName":"Neil Irani",
  "employeeCode":"E2",
  "region":"CA",
  "phoneNumber":"408-1111111",
  "emailAddress":"neilrirani@gmail.com"
  }
  {
  "userId":"thanks",
  "jobTitleName":"Program Directory",
  "firstName":"Tom",
  "lastName":"Hanks",
  "preferredFullName":"Tom Hanks",
  "employeeCode":"E3",
  "region":"CA",
  "phoneNumber":"408-2222222",
  "emailAddress":"tomhanks@gmail.com"
  }
  </code></pre>
  
  <p>expected o/p:in table format.can anyone help me this.</p>