Here is a sample of json data I created from defaultdict in python.
[{
"company": [
"ABCD"
],
"fullname": [
"Bruce Lamont",
"Ariel Zilist",
"Bruce Lamont",
"Bobby Ramirez"
],
"position": [
" The Hesh",
" Server",
" HESH",
" Production Assistant"
],
"profile_url": [
"http://www.url1.com",
"http://www.url2.com",
"http://www.url3.com",
"http://www.url4.com",
]
}]
I realized I made a mistake creating such list. json.loads() gives this error
Error
Expecting value: line 1 column 1 (char 0).
I want something like this.
[{
"company": [
"name": "THALIA HALL",
"employee": {
fullname: "emp_name",
"position": "position",
profile: "url"
},
{
fullname: "emp_name",
"position": "position",
profile: "url"
}
]
}]
How can I solve this problem? I need to do this on python.