Perfect! That's exactly what I needed. To be exact, `jsonify(**data)` is equivalent to `json(data)`.
Thanks, Pearu On Tuesday, November 26, 2013 10:54:30 PM UTC+2, Niphlod wrote: > > from gluon.serializers import json > > def whatever(): > return json(object) > > > On Tuesday, November 26, 2013 9:26:04 PM UTC+1, Pearu Peterson wrote: >> >> Hi, >> >> I am trying to merge sphinx generated documents to a web2py application >> using sphinx.websupport [1]. >> I am stuck to get commenting working. Namely, according to [1], a >> _get_comment controller ought to return jsonify object when using flask. >> My question is what would be jsonify(..) equivalent in web2py? >> >> Any hints are appreciated, >> Pearu >> >> [1] http://sphinx-doc.org/web/quickstart.html >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

