Extracting JSON Arrays from inside Json Objects

Sannyasin Brahmanathaswami brahma at hindu.org
Fri Jul 15 13:31:38 EDT 2016


aLiveCodeArray["formats"][1]["filename"]

                                            Peter

Thanks Peter.. I get it… I think… In the following we actually have a nested object. Hence the need to use [1].

As per the JSON "rules" for what an array may contain

An array is an ordered collection of values. An array begins with [ (left bracket) and ends with ] (right bracket). Values are separated by , (comma).

A value can be a string in double quotes, or a number, or true or false or null, or an object or an array. These structures can be nested.


"formats": [{
              "filename": "gr_1999-01-11_the-path-to-god.mp3",
              "format_name": "mp3",
              "isbn": null,
              "item_format_id": 1009,
              "item_id": 1217,
              "sale_date": null,
              "url": null
       }],




More information about the use-livecode mailing list