On Feb 9, 10:40 am, chiranjeevi muttoju <chiru.bt...@gmail.com> wrote:
> hi waine,
> Thanks for ur reply. i got that. is there is any way to parse regular class
> objects(not model objects) to json data..

As documented, Django's json serialization is done using a bundled
version of simplejson, which is documented here:
http://simplejson.googlecode.com/svn/tags/simplejson-2.0.9/docs/index.html

As a side note, in Python, classes are actually objects too, so "class
object" usually refers to an object of type 'class'. What you're
referring to as 'class objects' are usually known as 'class
instances', or just 'objects' (since 1/ everything is an object, and
2/ all objects are instances of their class).

Also - and while the distinction indeed made sense in the current
context -, "model objects" (instances of Model's subclasses) ARE
actually "regular" python objects !-)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to