That is where i tried first..

first my controller
return response.json(myvar)
it returned the json to the view correctly.

Then i need to return a dict to use it in my view.

ret= response.json(myvar)
return dict(ret=ret)
then in the view i just had
{{extend 'layout.html'}}
{{=ret}}

It does not work.
All my html is not interpreted and is dumpled like bellow...
[image: image.png]




Em ter, 25 de jun de 2019 às 15:42, Val K <[email protected]> escreveu:

> How do you convert dict to json? I believe that json.dumps or
> response.json produces json strings without L suffix
>
> --
> 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].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/cad32539-a4c4-4d49-a964-4243a008a534%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAEM0BxP3t63Kim3cxNuTdAiQh-CKpMcH0M8yemEYX2qCzdggfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to