Why not:
json_list.append(dict(title=r.taxonomy_column_name, key=...))
...
return json.dumps(json_list)
Anthony
On Wednesday, June 8, 2016 at 12:28:27 PM UTC-4, Alex Glaros wrote:
>
> so would code look like this? want to know if I'm going in the right
> general direction...
>
> json_list = []
> for r in new_roots:
> json_list.append('{"title": ' + '"' + r.taxonomy_column_name +
> '"' + ', "key":' ...etc...}')
>
> Also, thanks for catching the id error
>
>
>
--
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/d/optout.