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

Re^3: Verify syntax of large JSON files (code)

by tye (Sage)
on Nov 23, 2014 at 22:58 UTC ( [id://1108191]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $char = $self->_peek_char();
    
  2. or download this
     > perl isJson.pl < file.json
    Valid JSON.
    ...
    
     > perl loops.pl
    okTook 446s.
    
  3. or download this
     > perl skip.pl
    okTook 235s.
    
  4. or download this
     > perl loops.pl
    panicTook 402s.
    ...
     > perl isJson.pl < file.json
    Invalid bare word (troo) at line 1020000, pos 8 (t)
    Took 39s.
    
  5. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    fail( undef, "Unclosed aggregate $stack[-1]" )
        if  @stack;
    warn "Valid JSON.\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2024-04-23 14:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found