Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Iterate JSON File

by mijares93 (Initiate)
on Aug 02, 2018 at 16:36 UTC ( [id://1219718]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $decoded = decode_json($json);
          my $aref = $decoded->{"observations"};
          foreach my $element (@$aref){
      $final .= $element->{"op_path"}.",";
    }
    print $final;
    
  2. or download this
    {
      "generation_date": "",
      "static_info": "",
    ...
            }
          ]
        }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found