flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Dove <greg.d...@gmail.com>
Subject Re: [FlexJS] Issue with JSON.stringify and Bindable VO objects
Date Wed, 19 Apr 2017 06:42:15 GMT
I'd be happy to look at compiler side support for this at some point during
the next month, it is something I have hand-coded many times and I think
to/from JSON style support would be helpful for VO, especially bindables.
It would need to add an interface I think so you could cast the VO in
serialize/deserialize parts of service calls etc.

e.g. creating VO from json:

var myVO:VOClass = new VOClass()
(myVO as IJSONable).fromJSON(jsonData)

I know not everyone likes metadata, but this seems like a VO-specific
metadata on the class, that the compiler would pick up on. It could even
ignore [Transient] members if there are any.

This keeps it away from being dependent on the reflection data and makes it
specific to the classes that need it




On Wed, Apr 19, 2017 at 6:23 PM, piotrz <piotrzarzycki21@gmail.com> wrote:

> Alex, Harbs,
>
> I understand, but I thought that you will handle those method on the
> compiler sight - Am I miss something ?
>
> 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-tp61195p61216.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message