Help for this page

Select Code to Download


  1. or download this
    my ($pre, $post) = $indent ? $self->_up_indent() : ('', '');
    
  2. or download this
    my ($pre, $post) = ('', '');
    
  3. or download this
    use JSON::PP;
    
    my %HoA = ('foo' => [1,2,3], 'bar' => ['a','b','c']);
    print "plain:\n".JSON::PP->new->encode(\%HoA)."\n";
    print "pretty:\n".JSON::PP->new->pretty->encode(\%HoA);