I am using the following python code to return a json object:

```
df_as_json = df.to_json(orient='split')
return jsonify({'status': 'ok', 'json_data': df_as_json})

```

When I read the object back in javascript:

```
// response is xhr respose from server
const mydata = response.data
console.log(mydata.constructor.name)
// >Obj
const dfdata = mydata.json_data
console.log(dfdata.constructor.name)
// >String 

```

Is there a way to send the df\_as\_json as a json object inside the parent response.data json object?