File: json-empty.t

package info (click to toggle)
libyaml-syck-perl 1.20-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 932 kB
  • sloc: ansic: 3,987; perl: 3,387; makefile: 4
file content (8 lines) | stat: -rw-r--r-- 638 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
use strict;
use t::TestYAML ();
use Test::More tests => 1;
use JSON::Syck;

my $data = JSON::Syck::Load(q({"i":{"cid":"123","sid":"123","cd":"","v":"2.0","m":"h01iSTI5"},"r":{"adbox1":{"w":320,"h":200},"adbox2":{"w":320,"h":200},"adbox3":{"w":320,"h":200},"adbox1_info":{"w":320,"h":32},"adbox2_info":{"w":320,"h":32},"adbox3_info":{"w":320,"h":32},"adbox4":{"w":320,"h":200},"adbox5":{"w":320,"h":200},"adbox6":{"w":320,"h":200},"adbox4_info":{"w":320,"h":32},"adbox5_info":{"w":320,"h":32},"adbox6_info":{"w":320,"h":32},"adbox4_pick":{"w":320,"h":32},"adbox5_pick":{"w":320,"h":32},"adbox6_rate":{"w":320,"h":32}}}));

ok keys %$data;