Question: I have a JSON file

```
response ={
  "classifier_id": "xxxxx-xx-1",
  "url": "/testers/xxxxx-xx-1",
  "collection": [
    {
      "text": "How hot will it be today?",
      "top_class": "temperature",
      "classes": [
        {
          "class_name": "temperature",
          "confidence": 0.993
        },
        {
          "class_name": "conditions",
          "confidence": 0.006
        }
      ]
    },
    {
      "text": "Is it hot outside?",
      "top_class": "temperature",
      "classes": [
        {
          "class_name": "temperature",
          "confidence": 1.0
        },
        {
          "class_name": "conditions",
          "confidence": 0.0
        }
      ]
    }
  ]
}

```

Current Output
--------------

[![enter image description here](https://i.stack.imgur.com/svfxp.png)](https://i.stack.imgur.com/svfxp.png)

Code and undesired output
-------------------------

[![enter image description here](https://i.stack.imgur.com/sT1yZ.png)](https://i.stack.imgur.com/sT1yZ.png)

I tried `json_normalize`, however, it's giving duplicates.

How can I convert this Jason file to Pandas DataFrame?

The records for each collection should be expanded wide, not long.

![result: DataFrameImage](https://i.stack.imgur.com/cjlSv.jpg)

Answer: 
Just to people who may end up in the same case as me. The reason of this error was that I was using the `beta` channel. After switching to the `stable` channel, I ran

```
cd ios/
pod deintegrate
pod cache clean --all
cd ..
flutter clean

```

And, I removed the `Podfile` and the `Podfile.lock`. Then, I built the project again and it worked!
You need to change minimum deployment target, you can change it from `Xcode` like this (here i changed it to 11, in your case you need to change it to 12):

[![enter image description here](https://i.stack.imgur.com/IA09u.jpg)](https://i.stack.imgur.com/IA09u.jpg)