Parse a JSON file
-
Do you know how to retrieve the url of the JSON file corresponding to expansion number x? In JavaScript, you can use map, but do you know how to do it in HISE?
Thank you"result": [ { "_id": "65354a6e1f6318b08c7612cc", "expansion_version": 2, "url": "url2" }, { "_id": "65354a7706a49c291b423e1e", "expansion_version": 3, "url": "url3" } ],
-
-
I tried, but it seems to work only for arrays...
-
@Lumi283 Your example
result
is an array...const result = [ { "_id": "65354a6e1f6318b08c7612cc", "expansion_version": 2, "url": "url2" }, { "_id": "65354a7706a49c291b423e1e", "expansion_version": 3, "url": "url3" } ]; result.map(function(obj) { Console.print(trace(obj)); });