Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: loop through JSON data with Perl

by Siddartha (Curate)
on Oct 02, 2011 at 22:09 UTC ( [id://929192]=note: print w/replies, xml ) Need Help??


in reply to loop through JSON data with Perl

This should do it:
for my $item( @{$json_object} ){ print $item->{name} . "\n"; }
It's just an array that you need to loop through.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://929192]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-19 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found