in reply to Parsing JSON code.
Your code contains errors and won't even compile. :{ Here is a minimal example of what you're trying to do. Note that JS's true becomes a plain 1 in perlsprak.
use strict; use warnings; use JSON::XS; use LWP::Simple "get"; my $url = "http://steamcommunity.com/market/listings/440/Name%20Tag/re +nder/?count=2&start=2"; my $json = get $url; my $data = decode_json $json; print $data->{success}, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing JSON code.
by SebMorris (Novice) on May 17, 2014 at 19:14 UTC |