bijilsandroid / as3corelib

Automatically exported from code.google.com/p/as3corelib
0 stars 0 forks source link

Integrate ObjectTranslator into serialization package #22

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Integrate the ObjectTranslator from
http://www.darronschall.com/weblog/archives/000247.cfm into the
serialization package.  This takes a generic object with properties and
turns it into a strongly typed class instance.  It works very well with
converting JSON data into Value Objects.

In the process of adding this to corelib, it would be a great enhancement
to make it recursive as well.

Original issue reported on code.google.com by darron.schall on 30 May 2007 at 2:49

GoogleCodeExporter commented 8 years ago
Here's a snippet of code that could hopefully help in this effort. It does 
recursive
object graph traversal, calling ObjectTranslator.objectToInstance() as 
necessary.
Seems to be working fine for JSON deserialization within a project I'm working 
on.

Original comment by brent.de...@gmail.com on 30 May 2007 at 7:24

Attachments: