I have a dataframe (df) in pandas which I have converted to JSON formot as:

```
json_obj = df.to_json(orient=records).

```

The json object looks like (say):

```
json_obj = [
    {"a": "xxx", "b":"pqr", "c": 1},
    {"a": "uuy", "b":"abc", "c": 3},
    {"a": "yty", "b":"nnq", "c": 7}
]

```

Now when I send the data using an API URL (urlex (say)) (valid) as

```
import requests

r1 = requests.post('urlex', json = [
    {"a": "xxx", "b":"pqr", "c": 1},
    {"a":"uuy", "b":"abc", "c": 3},
    {"a": "yty", "b":"nnq", "c": 7}
]

print (r1.status_code)

print(r1.content)

```

I get the response code 200 with `**b'{"success":true}'**`

However, when I do the same with 

```
r1 = requests.post('urlex', json = json_obj ]

print (r1.status_code)

print(r1.content)

```

I get the response code 200 with `**b'{"success":false}'**`

What am I missing and what is the problem?