I am using JSON.stringify
to put an array into the search part of the URL. By default JSON uses square brackets, []
for arrays.
However, square brackets in URLs sometimes lead to strange problems. For example when sending a URL with square brackets in an email with Thunderbird the hyperlink gets cut off just before the first occurrence of a square bracket.
Is it possible to make JSON use another style of brackets? E.g. normal brackets, ()
?