Escape quotes in JSON

Hello! It seems like serialization to JSON does not work fine.
If you add a double quote to event name (i.e. badEvent"Name) and try to save contents of scheduler with scheduler.toJSON() you recieve JSON with unescaped quotes.

Same reaction in your example:
docs.dhtmlx.com/scheduler/sample … _json.html

Hi,

please find attached a fixed version of the serialize extension.
The fix will be also included in our next update.
Thanks for your assistance !
dhtmlxscheduler_serialize.js.zip (1.12 KB)

Thank you for such fast solution :slight_smile:
But there is one more bug. Backslash as last symbol in event name breakes JSON too.

Hi,

thanks for the problem report. Fixed version is attached!
dhtmlxscheduler_serialize.js.zip (1.13 KB)