title: How to convert JSON into a table using python?
body: <p>HI I'm a beginner with python.
  I have a csv file which I retrieve from my database. The table has several columns, one of which contains data in json. I have difficulty converting json data into a table to be saved in pdf.
  First I load the csv. Then I take the column that has the data in json and I convert them.</p>
  
  <pre><code>df = pd.DataFrame(pd.read_csv('database.csv',sep=';'))
  print(df.head())
  
  for index, row in df.iterrows():
  
      str = row["json_data"]
      val = ast.literal_eval(str)
      val1 = json.loads(str)
  </code></pre>
  
  <p>A sample of my json is that</p>
  
  <pre><code>{
      "title0": {
          "id": "1",
                   "ex": "90",
      },
      "title1": {
          "name": "Alex",
          "surname": "Boris",
          "code": "RBAMRA4",
  
      },
      "title2": {
          "company": "LA",
          "state": "USA",
          "example": "9090",
  
      }
  }
  
  </code></pre>
  
  <p>I'm trying to create a table like this</p>
  
  <pre><code>
  -------------------------------------------\
  title0
  --------------------------------------------\
  id 1
  ex 90
  ---------------------------------------------\
  title 1
  ---------------------------------------------\
  name Alex
  surname Boris
  code RBAMRA4
  ----------------------------------------------\
  title2
  ----------------------------------------------\
  company LA
  state USA
  example 9090
  </code></pre>