I've used Insomnia to send a json file ('json_information') to app django.
{
"company": 2,
"value": 0.15,
"date": "2020-01-01",
"default": "False",
"active": "False",
"list": [
{
"sku": "A1B2C3",
},
{
"sku": "D4E5F6",
},
{
"sku": "G7H8I9",
},
{
"sku": "J0K1L2",
},
],
}
The python code to load this json fails:
data = json.loads(request.data['json_information'], strict=False)
The error:
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 11 column 1 (char 181)
Any idea?