gabrielrcouto/php-gui

Quotes in text field generate JSON Exception

DubbaThony opened this issue · 0 comments

It looks like Lazarus has an issue with JSON encoding. For example if field contains exacly string [""], and its read, it gives an error:

=> Sent: {"id":100,"method":"callObjectMethod","params":[3,"lines.getAll",[]],"callback":null}
JSON ERROR: {"id": 100, "result": "[""]"}

The quotes weren't escaped to proper json.