-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When value is a json string, tostring does not handle escaping #4
Comments
Could you provide a small example? |
var |
If you provide an escaped string representing a JSON object it will work. There is an example in Test11: '{"k":"{"key":"value"}"}' McJSON doesn't do the escapes for you. However, the correct thing would be to throw an exception, since it is not being managed automatically. I'll improve it to automatically manage this or throw an exception. Thanks. |
I need mcjson to help me generate the correct json string so that other programs can parse it |
You can write a simple function in order to escape double quotes: json.add('content').AsString:= MyEscapeDoubleQuotes('{"name":"111"}'); |
When value is a json string, tostring does not handle escaping
The text was updated successfully, but these errors were encountered: