On 07/15/2016 11:28 AM, Sannyasin Brahmanathaswami wrote:
I actually think I like using a nested object
Right. I wasn't suggesting *not* using a nested object, just changing the format slightly:
{ "file_id": "gr_1999-01-11_the-path-to-god", "file_size": null, "file_type": null, "format": null, "formats": { "mp3": { "filename": "gr_1999-01-11_the-path-to-god.mp3", "isbn": null, "item_format_id": 1009, "item_id": 1217, "sale_date": null, "url": null }, "pdf": { "filename": "this_is_my_filename.pdf", "isbn": null, "item_format_id": 1009, "item_id": 1217, "sale_date": null, "url": null } }, "framesize": null, "genre": null } That way you pick out the information from the array as aLiveCodeArray["formats"]["mp3"]["filename"] -- Mark Wieder ahsoftw...@gmail.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode