perl - JSON Data output -
Below is a Perl code with JSON data:
Use data: Dumper; Use JSON; "Episodember": "101", "Episodember": "103511", "airdate": "08.13.97", "Episode Number": "$ 1" Available ":" True "," When ":" 08.13.97 " "Episode 2": {"Title": "Weight gain 4000", "id": "103516", "airdate": "08.20 97", "Episode": "102", "Available": " "$ True", "when": "08.20.97"}}; My $ resp = JSON :: jsonToObj ($ var); Print dumper ($ resp);
The output is:
$ VAR1 = {'episode1' => {'when' => '08.13.97 ',' episodember '=>> 101', 'airdate' = & Gt; '08.13.97 ',' title '= & gt;' Carton gets an anal test ',' id '=>' 103511 ',' available '=> true'}};
I am dumping a JSON data but only episode 1
is dumped into the output. But, I want both episode 1
and How to do this when I dump to display episode 2
?
Write valid JSON Parse error on line 14: ...: "08.13.97"}}, {"Episode 2":
-------------- ^ Expected 'EOF'
If you want an array of objects, then you have an array of data Required: [...]
.
Comments
Post a Comment