Re: EO to JSON String
Re: EO to JSON String
- Subject: Re: EO to JSON String
- From: Andrew Lindesay <email@hidden>
- Date: Fri, 6 Mar 2009 14:47:58 +1300
Hello Drew;
Have a look at...
LEWOJSONFormat
LEEOEnterpriseObjectSerialisationStrategy
...in...
http://homepage.mac.com/andrewlindesay/le/page_lestuff.html
Basically;
LEWOJSONFormat f = (LEWOJSONFormat ) LEJSONFormatFactory.newFormat();
f.setEnterpriseObjectSerialisationStrategy(...);
String s = f.format(someEo); //this is in JSON notiation
The deserialisation questionably makes sense, but the framework also
supports a client-side "EO proxy" which can act as a placeholder for
the EO on the client.
You may like to look at the WOWODC2008 videos on this.
cheers.
Looking for direction on converting an EO to a JSON string. I can
find many references to do the reverse (JSON->EO), but I'd like to
take data from an Enterprise Object and feed it out as a JSON
string. I'm trying to avoid writing this code so if any one can
point me to a good WO/Java Class and/or example code, I'd be grateful.
___
Andrew Lindesay
www.lindesay.co.nz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden