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";
In reply to Re: Parsing JSON code.
by Your Mother
in thread Parsing JSON code.
by SebMorris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |