I am trying to use a web API of a service written in Perl (OTRS). The data is sent in JSON format.
One of the string values inside the JSON structure contains a pound sign, which in apparently is used as a comment character in JSON. This results in a parsing error:
unexpected end of string while parsing JSON string
I couldn't find how to escape the character in order to get the string parsed successfully. The obvious slash escaping results in:
illegal backslash escape sequence in string
Any ideas how to escape it?
Update: The URL I am trying to use looks something like that (simplified but still causes the error):
http://otrs.server.url/otrs/json.pl?User=username&Password=password&Object=TicketObject&Method=ArticleSend&Data={"Subject":"[Ticket#100000] Test Ticket from OTRS"}