I'm getting error "detail": "JSON parse error - Expecting ',' delimiter: line 4 column 19 (char 64)" while trying to run my code, anyone please?

Viewed 30

Json data:

{
"title": "Iska", 
"number_of_pages": 3000, 
"publish_date": 22/12/23, 
"quantity": 20
}
2 Answers

Your publish date should probably be in quotes as the slashes are likely short circuiting your json.

JSON parse error - Expecting ',' delimiter: line 4 column 19 (char 64)"

not parse this value 22/12/23 to any type

It's inside quotation marks to identify it as String.

Related