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/

Reply via email to