Hi, Warren:

This is pretty straightforward; however a lot of Royale folks are at
ApacheCon today and for the next two days. You may not get a response until
later in the week.

Andrew

On Tue, Sep 29, 2020 at 8:31 AM wkoch <[email protected]> wrote:

>
> This is my first try at using JSON and I can't seem to get it right.  I'm
> using the example at
> https://royale.apache.org/loading-external-data-through-httpservice/ as a
> starting point but changed it to use a Cold Fusion CFC I converted to a
> JSON
> web service(access="remote" returntype="Any" returnformat="JSON").  I'm
> getting back complex JSON data oth two items that looks like this:
>
>
> {"STATUS":"SUCCESS","PROGRAMS":[{"MDL_NO":"03","MDL_NM":"3"},{"MDL_NO":"04","MDL_NM":"4,5,6"},{"MDL_NO":"07","MDL_NM":"7"}]}
>
> It shows up fine in the alert  (Alert.show(service.jsonToString, "JSON
> data");)
>
> I can extract the STATUS no problem (service.json.STATUS)
>
> The PROGRAMS is the result of a database query.  What I need to do is put
> PROGRAMS in an ArrayList so I can use it as a data provider on lists. I
> can't seem to convert it to an ArrayList- How do I do that?
>
>
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Andrew Wetmore
Technical Writer-Editor
Infra
*Apache Software Foundation*
[email protected]

Reply via email to