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
Florian
post Yesterday, 18:27
Post #2


Developer


Group: Admin
Posts: 8106
Joined: 12-December 01
From: Germany, Dresden
Member No.: 203
Mp3tag Version: 2.85a



Thanks for pointing. I've added support for unnamed root arrays with Mp3tag v2.85a.

Kind regards
— Florian


--------------------
♫ If you like using Mp3tag please donate to support further development.

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: 23rd November 2017 - 08:27