RE: [EXTERNAL] Re: How do I convert complex JSON to an ArrayList?

2020-10-02 Thread Koch (US), Warren R
That fixed it. Now on to try and get a List to work with the arraylist. From: Carlos Rovira [mailto:carlosrov...@apache.org] Sent: Wednesday, September 30, 2020 10:26 AM To: users@royale.apache.org Subject: Re: [EXTERNAL] Re: How do I convert complex JSON to an ArrayList? This message was sent

Re: [EXTERNAL] Re: How do I convert complex JSON to an ArrayList?

2020-09-30 Thread Carlos Rovira
Also more info about it in royale docs here: https://apache.github.io/royale-docs/create-an-application/optimizations/compiler-configuration-settings.html#dynamic-access-unknown-members El mié., 30 sept. 2020 a las 17:23, Carlos Rovira () escribió: > Hi Warren, > > you probably are missing the

Re: [EXTERNAL] Re: How do I convert complex JSON to an ArrayList?

2020-09-30 Thread Carlos Rovira
Hi Warren, you probably are missing the following compiler option: -js-dynamic-access-unknown-members=true; to access JSON subobject graphs in release mode Let us know if that solves the problem Thanks El mié., 30 sept. 2020 a las 13:35, wkoch () escribió: > I used both the 0.9.7 and the

Re: [EXTERNAL] Re: How do I convert complex JSON to an ArrayList?

2020-09-30 Thread wkoch
I used both the 0.9.7 and the 0.9.8 build ( I pulled that down yesterday ). I am attaching a file of the source code and console output from the debug and release builds using 0.9.8. It fails in both builds. In the IE inspector I get: Unable to get property 'Ng' of undefined or null reference

Re: [EXTERNAL] Re: How do I convert complex JSON to an ArrayList?

2020-09-29 Thread Piotr Zarzycki
Warren, Just to make clear here - if something doesn't work in release mode it is possible that is issue in Royale compiler. In order to chase it we need extracted working example/code and maybe zipped build - raise issue on GitHub. This is definitely not an issue in Moonshine itself. Please

Re: [EXTERNAL] Re: How do I convert complex JSON to an ArrayList?

2020-09-29 Thread wkoch
I changed my code like this based on what you folks indicated. public var myObj:Object; public var myArrayList:ArrayList; private function appInit():void{ registerClassAlias('org.apache.royale.collections.ArrayList', ArrayList); } private function resultCallback(event:Event):void{

Re: [EXTERNAL] Re: How do I convert complex JSON to an ArrayList?

2020-09-29 Thread Greg Dove
Normally for ArrayList, all you have to do is var myArrayList:ArrayList = new ArrayList(mySourceArray); if daveservice.json.PROGRAMS is an Array, then presumably you could use that. But with untyped objects, you may have issues in release build with renaming if you also try to access the fields

Re: [EXTERNAL] Re: How do I convert complex JSON to an ArrayList?

2020-09-29 Thread wkoch
So I guess I'd better pay more attention to my post. For some reason the SCRIPT got pulled when I posted it. No wonder I was getting questions. Apologies. I'm trying to get daveservice.json.PROGRAMS into an arraylist. import org.apache.royale.events.Event; import

Re: [EXTERNAL] Re: How do I convert complex JSON to an ArrayList?

2020-09-29 Thread Piotr Zarzycki
vira [mailto:carlosrov...@apache.org] > *Sent:* Tuesday, September 29, 2020 1:42 PM > *To:* users@royale.apache.org > *Subject:* [EXTERNAL] Re: How do I convert complex JSON to an ArrayList? > > > > This message was sent from outside of Boeing. Please do not click links or &g

RE: [EXTERNAL] Re: How do I convert complex JSON to an ArrayList?

2020-09-29 Thread Koch (US), Warren R
in for production applications. From: Carlos Rovira [mailto:carlosrov...@apache.org] Sent: Tuesday, September 29, 2020 1:42 PM To: users@royale.apache.org Subject: [EXTERNAL] Re: How do I convert complex JSON to an ArrayList? This message was sent from outside of Boeing. Please do not click