{"required_items":[
{
"filename":"abcd",
"no":"3"
},
{
"filename":"abc",
"no":"2"
}
]}
I am not getting the code of the JSON format in Python - I want to insert the filename and no through a loop.
list_of_other_ids={}
for i in xxxx:
entry={}
entry['filename'] = "XXXX"
entry['no'] =XX
list_of_other_ids.append(entry)
I am doing like this... and it fails.