Hello Appeon Team,
I am working to create the JSON using JSONGenerator and then making httpclient call to send those Json file as payload. We have frontend screen to take JSON fields value like comment, sales number, qty etc. The comment box is a text editor where user can enter any value. What if user enter the reserved characters which we can't use in JSON. In order to use those reserved character we may have to use the escape character.
Do we have any inbuild mechanism to parse these JSON string to ensure they will not fail when sending as payload?
Please recommend some full proof and working code/suggestion.
Vipin