Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    
    my $json = "{'k1':'v1','k2':'v2'}";
    decode_json($json);
    
  2. or download this
    unexpected end of string while parsing JSON string, at character offse
    +t 2 (before "k1':'v1','k2':'v2'}")
    
  3. or download this
    '"' expected, at character offset 1 (before "'k1':'v1','k2':'v2'}")
    
  4. or download this
    '{"k1":"v1","k2":"v2"}'
    
  5. or download this
    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord
    }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,