Hi everybody,
I'm developing a software content management in Pharo 1.3. I want to send objects from client to the server (SeaSide) using REST services. I need to serialize objects with JSON and deserialize JSON to get the object.
I saw in SeaSide Javascript-core-JSON package but it depends on Javascript and I only need JSON.
Anyone know how I can use JSON in Pharo and SeaSide to serialize and deserealize objects?
Ezequiel Lamónica
Hi Ezequiel,
There are a few other packages on SqueakSource that deal with JSON and that do not depend on Seaside.
http://www.squeaksource.com/JSON.html http://source.lukas-renggli.ch/petit.html (PetitJson)
As far as I know these do not deal with serializing arbitrary objects though, but I guess you can reasonably easy write some code that does that on top of one of these libraries.
Philippe wrote a Magritte extension that serializes and deserializes objects to JSON (and XML) using to their descriptions:
http://source.lukas-renggli.ch/magritteaddons (Magritte-Json)
Lukas
On 15 November 2011 15:27, Ezequiel Lamonica lamonicaezequiel@gmail.com wrote:
Hi everybody, I'm developing a software content management in Pharo 1.3. I want to send objects from client to the server (SeaSide) using REST services. I need to serialize objects with JSON and deserialize JSON to get the object. I saw in SeaSide Javascript-core-JSON package but it depends on Javascript and I only need JSON.
Anyone know how I can use JSON in Pharo and SeaSide to serialize and deserealize objects? Ezequiel Lamónica _______________________________________________ seaside-dev mailing list seaside-dev@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
2011/11/15 Ezequiel Lamonica lamonicaezequiel@gmail.com:
Hi everybody, I'm developing a software content management in Pharo 1.3. I want to send objects from client to the server (SeaSide) using REST services. I need to serialize objects with JSON and deserialize JSON to get the object. I saw in SeaSide Javascript-core-JSON package but it depends on Javascript and I only need JSON.
Anyone know how I can use JSON in Pharo and SeaSide to serialize and deserealize objects?
Besides the mentioned Magritte-JSON there's also Seaside-JSON-Core which contains canvas for rendering JSON.
Cheers Philippe
Cheers Philippe
Thanks! I'll try with this.
2011/11/19 Philippe Marschall philippe.marschall@gmail.com
2011/11/15 Ezequiel Lamonica lamonicaezequiel@gmail.com:
Hi everybody, I'm developing a software content management in Pharo 1.3. I want to send objects from client to the server (SeaSide) using REST services. I need to serialize objects with JSON and deserialize JSON to get the object. I saw in SeaSide Javascript-core-JSON package but it depends on
Javascript
and I only need JSON.
Anyone know how I can use JSON in Pharo and SeaSide to serialize and deserealize objects?
Besides the mentioned Magritte-JSON there's also Seaside-JSON-Core which contains canvas for rendering JSON.
Cheers Philippe
Cheers Philippe _______________________________________________ seaside-dev mailing list seaside-dev@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
seaside-dev@lists.squeakfoundation.org