title: how to convert list of json object into a single pyspark dataframe?
body: <p>I'm new to pyspark, I have a list of jsons coming from an api, each json object has same schema(key-value pair). Like this</p>
  
  <pre><code>[ {'count': 308,
    'next': 'some_url',
    'previous': None,
    'results': [{'assigned_to': 43,
      'category': 'Unused',
      'comments': None,
      'completed_ts': None,
      'created': '2019-05-27T05:14:22.306843Z',
      'description': 'Pollution',
      'display_name': {'admin': False,
       'business_name': 'Test Business',
       'contact_number': 'some_number',
       'dob': None,
       'email': 'some_mail',
       'emp_id': None,
       'first_name': 'Alisha'}}]},
    {'count': 309,
    'next': 'some_url',
    'previous': None,
    'results': [{'assigned_to': 44,
      'category': 'Unused',
      'comments': None,
      'completed_ts': None,
      'created': '2019-05-27T05:14:22.306843Z',
      'description': 'Pollution',
      'display_name': {'admin': False,
       'business_name': 'Test Business',
       'contact_number': 'some_number',
       'dob': None,
       'email': 'some_mail',
       'emp_id': None,
       'first_name': 'Ali'}}]},......}]
  </code></pre>
  
  <p>if it would have been separate json files. I would have created dataframe using</p>
  
  <p><code>df =spark.read.json('myfile.json')</code>
  and then would have merged all dataframes into one. I'm facing issue in converting the datframe directly from list itself. I have used this</p>
  
  <pre><code>from pyspark.sql import SparkSession
  spark= SparkSession.builder.appName("Basics").getOrCreate()
  sc= spark.sparkContext
  df = pyspark.sql.SQLContext(sc.parallelize(data_list))`
  </code></pre>
  
  <p>It gives me
  <code>AttributeError: 'RDD' object has no attribute '_jsc'</code></p>