Extracting JSON Arrays from inside Json Objects
Sannyasin Brahmanathaswami
brahma at hindu.org
Mon Jul 18 18:37:36 EDT 2016
hmm… the introduction of that left bracket was a typo…
I don't know enough about this to insist on anything (hehe)
just feeling my way.
On 7/18/16, 9:59 AM, "use-livecode on behalf of Mark Wieder" <use-livecode-bounces at lists.runrev.com on behalf of mwieder at ahsoftware.net> wrote:
Sannyasin Brahmanathaswami <brahma at ...> writes:
> so this would translated into, using your model
>
> {"file_id": "p6_rajam",
> "formats": [
> {
> "2531x4000": {
> "filename": "p6_rajam_ful.jpg",
> "isbn": null,
> "item_format_id": 43430,
> "item_id": 3268,
> "sale_date": "0000-00-00 00:00:00",
> "url": null
> },
> "911x1440"
> {
> "filename": "p6_rajam_lrg.jpg",
> "isbn": null,
> "item_format_id": 43429,
> "item_id": 3268,
> "sale_date": "0000-00-00 00:00:00",
> "url": null
> },
>
>
Ah, no...
if you're going to insist on the JSON list format using the "[" and "]"
delimiters, then you're going to have to use numeric indices.
I was suggesting instead:
> {"file_id": "p6_rajam",
> "formats":
> {
> "2531x4000": {
> "filename": "p6_rajam_ful.jpg",
> "isbn": null,
> "item_format_id": 43430,
etc. (difference in the "formats": line)
--
Mark Wieder
ahsoftware at gmail.com
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list