Skip Menu |

This queue is for tickets about the JSON-XS CPAN distribution.

Report information
The Basics
Id: 34303
Status: rejected
Priority: 0/
Queue: JSON-XS

People
Owner: Nobody in particular
Requestors: BEROV [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Hi,Great module, really. Well, not sure if the following is a bug or a feature, but I really would like to be able to store perl regular expressions using JSON::XS. Imagine the following code: { "alias":{ "match":"m|^[\w]+$|" } } When parsing the file I get the following message: illegal backslash escape sequence in string, at character offset 121 ["\\w]+$|",nn ..."] at ... which made me to rewrite my regex like this: "match":"m|^[:alnum:]+$|", This is a workaround for now but I may see my self forced to turn back to YAML or simply Perl. Thanks in advance. This is the most impressive serialization module I used.
your example is not valid json, please do not abuse rt.cpan.org to ask beginners programming questions, there are other forums for this.