Why not:

    def GET(*args, **vars):
        sample_raw_rpc_response = '["one", "two", "three"]' 
        sample_rpc_response = simplejson.loads(sample_raw_rpc_response)
        result = someOtherOperationThatCanPOTENTIALLYReturnAList(
sample_rpc_response)
        return simplejson.dumps(result)

Or if you need the more sophisticated parsing of generic.json:

        from gluon.serializers import json
        return json(result)

There's not much reason to use a view here -- the view just includes a 
single line that calls a JSON serializer.

Anthony

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to