On Aug 20, 10:01 am, Imad Elharoussi <imad.elharou...@gmail.com>
wrote:
> Hello
>
> How can we return an object in a json format?
>
> it is like this :
>
> return HttpResponse(simplejson.dumps(ihmAgentRoot),
>                                     mimetype='application/json')
>
> or do we need an other thing?
>
> thank you

That is what I do and it works.

-- 
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