Tuesday, May 4, 2010

Equivalent of php json_encode?

Is there a django or python equivalent of php json_encode?

the data I am converting to json has text fields that have quotes,
double quotes, newlines and html tags. Creating json manually in my
program without escaping or converting these special characters is
causing problem on javascript side.

A php programmer suggested I use equivalent of php json_encode.

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

No comments:

Post a Comment