Is there a general module to escape characters of a JSON for HTTP Request?

Check the answer from here: