On 4/18/17, 11:45 PM, "Greg Dove" <greg.d...@gmail.com> wrote:

>maybe fromJson is not the best example :)

I'm not sure I understand what you want to do.  Are you trying to support
types in the JSON reviver?

-Alex

>
>
>On Wed, Apr 19, 2017 at 6:42 PM, Greg Dove <greg.d...@gmail.com> wrote:
>
>> 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 <piotrzarzyck...@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
>>> piotrzarzyck...@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.
>>>
>>
>>

Reply via email to