As JSON values are generated dynamically and the values in it are based on user inputs, So if user inputs an unacceptable character like "
in a string it will make the json invalid.
something like:
{
"tag" : "demo",
"value": "user " input"
}
Is there a way to encode or escape the JSON values?