Hi,

thanks for your answers.
Using on client side "JSON.encode(myObj)" and on server side "eval('var obj='+myStr)" solves my issue.

But don't you think it could be feature added in server's C code (and Pipe.uni in client JS code) ?
I mean:
- if a string is passed to 'pipe.send', then send the string.
- if an object is passed to 'pipe.send', then JSONize it autmatically on client, and extract it automatically on server side (in C code).

Regards,

Nouk²


Le 25/03/2010 11:57, Cadrach a écrit :
Your error seems that the object {"aaa":"bbb","foo":"foo","bar":"bar"}
is cast to string, thus you get "bbb".

What you send is not a JSON string, it is an object. You should
JSONize it on the client and unJSON the received string on the server.

++

Cadrach

On Mar 25, 11:16 am, Florian Müller<[email protected]>  wrote:
You need to eval the JSON on clientside, go look @www.json.org

Nouknouk schrieb:

nobody ?

--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

To unsubscribe from this group, send email to ape-project+unsubscribegooglegroups.com or 
reply to this email with the words "REMOVE ME" as the subject.

Reply via email to