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)



Download (untitled) / with headers
text/plain 655b
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.
Download (untitled) / with headers
text/plain 136b
your example is not valid json, please do not abuse rt.cpan.org to ask beginners programming questions, there are other forums for this.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.