in reply to Re: JSON ARRAY Problem
in thread JSON ARRAY Problem

The OP's code snippet included this line:

my $var1 = $decoded->{'meta-tags'}[$i]{'id'};

He's already using some JSON module to arrive at that data structure.


Dave

Replies are listed 'Best First'.
Re^3: JSON ARRAY Problem
by Riales (Hermit) on Oct 01, 2013 at 04:43 UTC

    Hmm...you're right. I guess I don't understand the question then. The code I included seems to work for extracting the ID he wanted.

      I didn't understand it either. I dumped the decoded JSON, and was stumped by the part where he was looking for a specific element in the "meta" array that contained a date; the only date field I found wasn't contained within the array.


      Dave