Help for this page

Select Code to Download


  1. or download this
    use JSON::Parse;
    my $JP = JSON::Parse->new();
    $JP->warn_only();
    $JP->warn_only(1);
    
  2. or download this
    JSON::Parse->warn_only($JP, 'on');
    
  3. or download this
    Usage: JSON::Parse::warn_only(parser, onoff)
    
  4. or download this
    JSON::Parse::warn_only: parser is not of type JSON::Parse
    
  5. or download this
    $j->warn_only(1);
    
  6. or download this
    use strict;
    use warnings;
    ...
    $pl = $j->run('illegal json');
    print Dumper($pl);
    print "I am not dead 2\n";
    
  7. or download this
    $VAR1 = {
              'k' => 'v'
            };
    I am not dead 1
    JSON error at line 1, byte 1/12: blah blah blah at which point it has 
    +died.