On 4/18/17, 10:34 PM, "piotrz" <piotrzarzyck...@gmail.com> wrote:

>Hi Alex,
>
>I just tried toJSON method on object in JS and it failed with error that
>those method do not exist. Did you mean something like this ?
>
> var book:Book = new Book();
>book.title = "Trump";
>
>var toJSON:Object = book["toJSON"]();
>var jsonString:String = JSON.stringify(toJSON);
>
>If such function do not exist we can still do something with this ?

Yes, we can probably make this work.  Does this work for SWF as well?

Thanks,
-Alex

Reply via email to