Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: make duplicate JSON keys an error

by sedusedan (Monk)
on Oct 26, 2013 at 12:28 UTC ( [id://1059815]=note: print w/replies, xml ) Need Help??


in reply to Re: make duplicate JSON keys an error
in thread make duplicate JSON keys an error

It's because in Randal's code some whitespaces are not allowed. Here's the version that allows more whitespaces and parses the above example: Regexp.pm (it'll soon be on CPAN as JSON::Decode::Regexp 0.03).

Also, here's a version that checks for duplicate keys: Regexp.pm.

  • Comment on Re^2: make duplicate JSON keys an error

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1059815]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found