how to create a list in easyJSON

Andre Garzia andre at andregarzia.com
Sat Dec 31 07:12:38 CET 2016


Try placing a:

  Split tArray[one] by comma

Before converting to json.

Om om
Andre
Ps: typing on the phone, sorry for my brevity

Em 30 de dez de 2016 15:29, "Matt Maier" <blueback09 at gmail.com> escreveu:

> I'm trying to send a list of strings to an API. Best I can tell it's
> interpreting the entire list as one string. Is there a way to send data to
> easyJSON such that it returns a JSON  list of strings instead of one
> monolithic string?
>
> For example, I've got something like this:
>
> array[one] = 12345,12345,12345
> array[two] = 12345,12345
>
> and what I get back from easyJSON is this:
>
> {"one":"12345,12345,12345","two":"12345,12345"}
>
> when what I'm trying to get is more like this
>
> {"one":["12345","12345","12345"],"two":["12345","12345"]}
> _______________________________________________
> 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