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: 6
Joined: 5-November 10
Member No.: 13170
Mp3tag Version: 2.85a



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 Nov 22 2017, 18:27
Post #2


Developer


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



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
The-Lion
post Nov 24 2017, 09:51
Post #3


Member


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



Thanks Florian! I look forward to it.
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: 16th December 2017 - 21:49