How does Odoo parse the options string from a widget in Javascript?
I have a widget with
options = "{'city': 'city', 'street_name': 'street', 'zip': 'zip'}" in the xml
When i write JSON.parse(options) in JS, i get an error: JSON.parse: expected property name or '}'.
But, if i write,
options = '{"city": "city", "street_name": "street", "zip": "zip"}'
it works fine!
How does Odoo handle this. I want JSON to parse my string irrespective of the quotes..