I wonder if there is a way to decode a JSON-like string.
I got the line:
'{ hotel: { id: "123", name: "hotel_name"} }'
This is not a valid JSON string, so I cannot decode it directly using the python API. Python will only accept a JSON string string, for example:
'{ "hotel": { "id": "123", "name": "hotel_name"} }'
where properties are quoted as a string.
source share