'JSON.stringify converts colon inside string to a unicode character [closed]

I have a string object in javascript as given below:

time : "YYYY-MM-DDT00:00:00.000Z@YYYY-MM-DDT23:59:59.999Z"

When I use JSON.stringify to convert the object to string, I get the following string

"time=YYYY-MM-DDT00%3A00%3A00.000Z%40YYYY-MM-DDT23%3A59%3A59.999Z"

Here 2 characters, i.e., @ and : are being converted to their unicode, which is unwanted behaviour.

How can I prevent this unwanted conversion, so that my string remains unchanged?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source