Help for this page

Select Code to Download


  1. or download this
    BEGIN {
      require JSON;
      JSON->import(qw(encode_json decode_json));
    }
    
  2. or download this
      # Note that JSON version 2.0 and above will automatically use JSON::
    +XS
      # if available, at virtually no speed overhead either, so you should
    ...
      use JSON;
    
      # and do the same things, except that you have a pure-perl fallback 
    +now.