Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: JSON and Perl Objects - How to access data?

by jZed (Prior)
on Nov 18, 2007 at 22:42 UTC ( [id://651548]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for my $item( @{$inventors_object->{items}} ){
        print $item->{name} . "\n";
    };
    
  2. or download this
    $inventors_object->{items}->[0}->{name} = 'new name';
    
  3. or download this
    my $new_json = objToJson( $inventors_object );
    
  4. or download this
    @inventors_array = $inventors_obj->{"items"};
    
  5. or download this
    @inventors_array = @{ $inventors_obj->{"items"} };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-19 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found