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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to