how to create a list in easyJSON
J. Landman Gay
jacque at hyperactivesw.com
Mon Jan 2 18:00:13 EST 2017
On 1/1/17 12:31 PM, pink wrote:
> what version of easyJSON are you using? I just copied the library from:
> https://github.com/luxlogica/easyjson/blob/master/easyjson.lc
>
> used this code:
> put "12345" into tArray["one"][1]
> put "12345" into tArray["one"][2]
> put "12345" into tArray["one"][3]
> put "12345" into tArray["two"][1]
> put "12345" into tArray["two"][2]
> put jsonfromarray(tArray) into tWhatever
> and got:
> {"one":[12345,12345,12345],"two":[12345,12345]}
>
>
> I still recommend fastJSON over easyJSON:
> https://github.com/bhall2001/fastjson/blob/master/fastjson.lc
The built-in arrayToJSON function gives the same thing.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list