I am trying to create a JSON array but it doesn't work:
var test = '{"chapters":[{"id":"test1", "label":"Observation", "handler":"openChapter("observation")"}]}';
I know the problem are the quotes around observation in the handler.
I tried this but it doesn't work either (not surprising):
var test = '{"chapters":[{"id":"test1", "label":"Observation", "handler":"openChapter(\"observation\")"}]}';
How can I do?
Thank you for your help!