Hi Warren,
I'm not exactly sure what do you wanted to achieve. If you have JSON string
you can do:
*JSON.parse()*
If there is an array you will get object with Array it means that if you
have:
{"STATUS":"SUCCESS","PROGRAMS":[{"MDL_NO":"03","MDL_NM":"3"},{"MDL_NO":"04","MDL_NM":"4,5,6"},{"MDL_NO":"07","MDL_NM":"7"}]}
Doing JSON.parse on above you will get object:
var myObj:Object = {
PROGRAMS: [ ]
}
It means you can later do new ArrayList(myObj.PROGRAMS).
wt., 29 wrz 2020 o 20:32 wkoch <[email protected]> napisaĆ(a):
>
> I've simplified the code a whole bunch to make it easier (for me!) to
> understand. I've tried a bunch of things but took it all out going on the
> assumption you wizards could modify this faster to add an ArrayList rather
> than try and clean up my mess. FYI -- I'm using 0.9.7 with Moonshine 3.0.0
> build 234.
>
> <?xml version="1.0" encoding="utf-8"?>
> <j:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> xmlns:j="library://ns.apache.org/royale/jewel"
> xmlns:js="library://ns.apache.org/royale/basic"
>
> xmlns:html="library://ns.apache.org/royale/html
> "
> xmlns:local="*">
> <fx:Style source="resources/app-styles.css"/>
> <fx:Script>
>
> </fx:Script>
> <j:valuesImpl>
> <js:SimpleCSSValuesImpl />
> </j:valuesImpl>
> <j:initialView>
> <j:View>
> <j:beads>
> <j:VerticalCenteredLayout/>
> </j:beads>
> <j:Button text="Get Data 2" emphasis="primary"
> click="getCfcStoredProcContent(event)" />
> </j:View>
> </j:initialView>
> </j:Application>
>
>
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>
--
Piotr Zarzycki