IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> json_foreach on root array
The-Lion
post Nov 12 2017, 10:10
Post #1


Member


Group: Full Members
Posts: 5
Joined: 5-November 10
Member No.: 13170
Mp3tag Version: 2.46a



Hi,

I can't find any documentation about iterating over a root json array with json_foreach.

The json_foreach command requires exactly one argument: the key on which to iterate. However when the json result starts with an array it's not possible to iterate on it?

CODE
[{key:'value'},{key:'value'}]


vs

CODE
{results: [{key:'value'},{key:'value'}]}
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th November 2017 - 06:02