I Have some data in JSON format and i want to load that data with manage.py loaddata data.json
command. I have below JSON format.
{
"fields":{
"user id":12026,
"user name":"Paul Graham",
"email":"pgraham0@sun.com",
"city":"China",
"VIdeoData":[
{
"video":"Livetube",
"time":0
},
{
"video":"Leexo",
"time":22
}
]
},
"pk":1,
"model":"graph.videometadata"
},
Here my question is how will i define model fields for VideoData? Object inside the videodata could vary.