Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by jZed (Prior)
on Nov 18, 2007 at 22:42 UTC ( #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
Node Status?
node history
Node Type: note [id://651548]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2020-07-02 16:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?