gabrielrcouto / php-gui

Extensionless PHP Graphic User Interface library
2.24k stars 175 forks source link

Quotes in text field generate JSON Exception #191

Open DubbaThony opened 2 years ago

DubbaThony commented 2 years ago

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.