JSON in Pharo

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

JSON in Pharo

ezequiel lamonica
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
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
eze
Reply | Threaded
Open this post in threaded view
|

Re: JSON in Pharo

Lukas Renggli
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 <[hidden email]> 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
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
>
>



--
Lukas Renggli
www.lukas-renggli.ch
_______________________________________________
seaside-dev mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
Reply | Threaded
Open this post in threaded view
|

Re: JSON in Pharo

Philippe Marschall
In reply to this post by ezequiel lamonica
2011/11/15 Ezequiel Lamonica <[hidden email]>:

> 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
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
Reply | Threaded
Open this post in threaded view
|

Re: JSON in Pharo

ezequiel lamonica
Thanks! I'll try with this. 

2011/11/19 Philippe Marschall <[hidden email]>
2011/11/15 Ezequiel Lamonica <[hidden email]>:
> 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
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev


_______________________________________________
seaside-dev mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
eze