Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: JSON Structure Question

by omegaweaponZ (Beadle)
on May 23, 2013 at 15:36 UTC ( #1034965=note: print w/ replies, xml ) Need Help??


in reply to Re: JSON Structure Question
in thread JSON Structure Question

This is the closest to what I'm looking for, as I can generate all the hashes, but I have yet to get each value. Just to clarify, I already can get every other value within the parenthesis of each json line, So everything within 1 {} I can get! The issue is I actually want to record and store the value of 1 itself, and 2, and 3, and so on, in one giant for loop that encompasses my ability to grab the values of each array within, so they are all assigned line by line


Comment on Re^2: JSON Structure Question
Re^3: JSON Structure Question
by omegaweaponZ (Beadle) on May 23, 2013 at 18:58 UTC
    Figured it out, hash was the way to approach this. But simplistically, all I needed to do was:
    my %hash = %{ $data }; while (my ($key, $value) = each %hash) { print "$key : $value \n";
    Instant first level report out

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2014-10-02 05:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (49 votes), past polls