File: eg1.pl

package info (click to toggle)
libjson-multivalueordered-perl 0.006-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 220 kB
  • sloc: perl: 495; makefile: 2
file content (8 lines) | stat: -rw-r--r-- 182 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
use 5.010;
use JSON::MultiValueOrdered;

my $json = JSON::MultiValueOrdered->new;
my $data = $json->decode(q( {"a":1,"b":2,"b":3} ))
	or die $json->error;

say $json->encode($data);