Re: [pylons-devel] Using Colander to go from Python object to JSON

2016-11-29 Thread Alex Kessinger
Thanks On Monday, November 28, 2016 at 2:44:25 PM UTC-7, Michael Merickel wrote: > > Colander is not suitable for serializing to json - its cstruct format is > always strings. In my experience the only use of colander's serialization > is for use with deform - however it's great for deserializin

Re: [pylons-devel] Using Colander to go from Python object to JSON

2016-11-28 Thread Michael Merickel
Colander is not suitable for serializing to json - its cstruct format is always strings. In my experience the only use of colander's serialization is for use with deform - however it's great for deserializing json to an appstruct. It's been a common complaint over the years but nothing much has bee

[pylons-devel] Using Colander to go from Python object to JSON

2016-11-28 Thread Alex Kessinger
Hi, I have a question about the appropriate use of Colander to go from a python object to JSON Let's say I have a django model called Person, and a schema called PersonSchema. Would this be an appropriate way to take a person model to json? person = Person.objects.get(pk=1) appstruct = person.