[Grok-dev] Example JSON-RPC example

Michael Haubenwallner michael at d2m.at
Fri Apr 3 06:19:54 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Roger Erens wrote:
> on 04/03/2009 11:34 AM Souheil CHELFOUH wrote:
>> I think he wants to *receive* JSON datas, and that is his main problem
> 
> Yes, I'm working my way through some JSON tutorial now. Maybe that will
> enable me to pinpoint the problem better.
> 

"olleH" is a JSON string, so it is just what you should expect from your
view.

Your problem is, that you want to use JSON-RPC (from pyjames) to
communicate with Grok. This protocol is not supported by Grok. All you
can do is call a grok.JSONView (like any other URL, e.g.
http://localhost:8080/your_app/samplejson) and get a JSON object returned.

Regards
Michael

- --
http://blog.d2m.at
http://planetzope.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ1eLJl0uAvQJUKVYRAuelAJ9KLCInZGinVPFrlyXYO9tvFDCw5wCeOtZW
mrUwFWTdmzP8gYot0UPALOQ=
=onoY
-----END PGP SIGNATURE-----



More information about the Grok-dev mailing list