flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From piotrz <piotrzarzyck...@gmail.com>
Subject Re: [FlexJS] Issue with JSON.stringify and Bindable VO objects
Date Wed, 19 Apr 2017 05:34:34 GMT
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 ?

Thanks,
Piotr





-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Issue-with-JSON-stringify-and-Bindable-VO-objects-tp61195p61208.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Mime
View raw message