json_foreach on root array


#1

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?

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

vs

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

#2

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

Kind regards
— Florian


#3

Thanks Florian! I look forward to it.