Please show your code and its results. If you post JSON with contenttype 
'application/json', request.post_vars should end up being the JSON 
converted to a Python data structure.

Anthony

On Saturday, February 3, 2018 at 9:08:00 AM UTC-5, lucas wrote:
>
> hello one and all,
>
> I know that web2py sends a json object/dict great.  does work great.  
>
> HOWEVER, I'm asking about the opposite question.  how can I send a json 
> object/dict from the client to web2py and it receive it under the 
> controller function's request.vars storage as a python dict?
>
> I understand that it might break http post rules or something, and when I 
> do send a json dict, request.vars flattens the whole array into keys with 
> flattened strings instead of addressable indexes/keys.
>
> ok, let me know and thank you in advance.  Lucas
>

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

Reply via email to