Advanced JSON handling with arrays

Alan Stenhouse alanstenhouse at hotmail.com
Wed Oct 15 17:42:03 EDT 2025


Hi David

There's JSONImport and JSONExport and otherwise try the PhotonJSON library, which IIRC works properly for nested arrays.

________________________________

Date: Wed, 15 Oct 2025 09:02:11 +0100
From: David Bovill <david.bovill at gmail.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Subject: Advanced JSON handling with arrays
Message-ID:
        <CAGASioN4ZHtn_Qn2Wi_R2BVGKizYnKOft-W2EVhsTyCcJaNNSg at mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

I've been using mergJson for a number of years, and construct json using
arrays then convert them to json for rpc. I've been porting this to
web/wasm export and hit the block that mergJson is not available for web.

I've tried the built in library but it does not work the same for nested
arrays and I can only get it working for simple structures.

Any advise on how to handle JSON properly?


More information about the use-livecode mailing list