Replies: 1 comment 2 replies
-
With a few more hours of experiementation, the answer appears to be... another foreach loop... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The JSON is of the general form of:
{ "foos":[ { "fooName":"name", "bars" : [ {"barName":"some other name", "barValue": "value of bar"}, {"barName":"second other name", "barValue": "second value of bar"} ]} ] }
I can iterate through foo with fooName via:
$items = Items::fromFile($jsonfname, ['pointer' => '/foos']);
But while bars is listed, it is an empty stdClass.
I tried, per the docs,
$items = Items::fromFile($jsonfname, ['pointer' => ['/foos','/foos/bars']]);
which gave the error:
How can I get /foos/bars fully resolved/filled-in?
Thanks
(Note: Seems related to #36 but I don't see what that resolution was.)
Beta Was this translation helpful? Give feedback.
All reactions