Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: make duplicate JSON keys an error

by sedusedan (Pilgrim)
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 pondering the Monastery: (1)
As of 2025-02-09 15:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (96 votes). Check out past polls.