in reply to JSON parsing issue please help
It is usual to state what problem you are having, or how the results of your code differ from your expectations.
However, looking at your code, I see you are trying to iterate the array held in the first element of the entryArray array:
@{ $json_text->{balArray}[0]{containerArray}[0]{entryArray}[0] } ...........................................................^^^
But looking at the json, the elements of the entryArray array, do not contain arrays, they contain hashes.
If you were using strict and warnings, you'd be getting a "Not an ARRAY reference at .." message pointing at the above line, which would be a strong clue to the solution of your problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: JSON parsing issue please help
by Anonymous Monk on Sep 30, 2012 at 06:20 UTC | |
by BrowserUk (Patriarch) on Sep 30, 2012 at 07:01 UTC |