This is an exception to this question:
JSON: why are slashes discarded?
So, I understand why JSON avoids skewing when I create a JSONArray with strings containing the URLs (links) in each of its indexes. I would now like to know how to make JSON not avoid these slashes when I serialize String like this:
[['documentary', 'http://www.google.com/#q=documentary']]
in JSONArray. I was thinking of iterating through the lines and deleting any instance where there is a backslash, but I was wondering if there was a more efficient way to do this or a way to make it so that the above line was not automatically escaped as follows
[['documentary', 'http:\/\/www.google.com\/#q=documentary']]
Thank! Let me know if something is unclear.
Vinay source
share