Without having tried them, I see there are two CouchDB projects in
squeaksource, they may handle your needs:

http://www.squeaksource.com/SCouchDB.html
http://www.squeaksource.com/CouchDB.html

Cheers,

2011/8/30 Sven Van Caekenberghe <[email protected]>

> Hi Larry,
>
> On 29 Aug 2011, at 21:27, Larry White wrote:
>
> > I've tried the JSON library bundled with SCouchDB and it seems to
> automatically handle simple objects (eg, where the inst vars reference
> Strings or Numbers), but not handle more complex objects. Also, I haven't
> seen anything that de-serializes from json.
>
> There is a JSON encoder/decoder in Seaside, it is pretty standalone, see
> this recent thread:
>
> http://forum.world.st/Standalone-JSON-Package-tp3759705p3759705.html
>
> This one works very well (I am using it all the time), but only handles
> standard JSON types (follows the spec).
>
> Now, JSON objects don't hold their type or class as Smalltalk (or Java
> objects) do, they are just Dictionaries. There is no automagic solution to
> this, apart from encoding the type/class as a property, but will most
> probably not be portable across languages (java.lang.Integer for Java,
> Integer for Smalltalk), one of the strengths of JSON.
>
> So you will have to write code to convert your Person (or whatever) objects
> to/from Dictionaries and use JSON.
>
> Sven
>
>
>
>


-- 
Bernat Romagosa.

Reply via email to