Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: problem parsing json

by davido (Cardinal)
on Sep 29, 2012 at 05:37 UTC ( [id://996337]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -MJSON::Tiny -MData::Dumper -n0777E '$j=JSON::Tiny->new; $o=$j-
    +>decode($_); say length $o ? Dumper($o) : $j->error;' diamondsandperl
    +s.json
    
    Malformed JSON: Expected array or object at line 0, offset 0
    
  2. or download this
    $ perl -MJSON -MData::Dumper -n0777E 'say Dumper( JSON->new->decode($_
    +) );' diamondsandperls.json
    
    malformed JSON string, neither array, object, number, string or atom, 
    +at character offset 995 (before "],\n               "...") at -e line
    + 1, <> chunk 1.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-23 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found