Simplejson dumps char \
Posted
by Monty
on Stack Overflow
See other posts from Stack Overflow
or by Monty
Published on 2010-05-03T20:52:28Z
Indexed on
2010/05/03
22:58 UTC
Read the original article
Hit count: 421
Hi! Im programming with django and i need to serialize an object to a string, but i need to get the string \/ serialized.
An example:
simplejson.dumps({'id' : 'root\/leaf'})
I need an output like this:
'{"id": "root\/leaf"}'
but i get this:
'{"id": "root\\\\leaf"}'
Thank you!!
PD: Sorry for my english :-P
© Stack Overflow or respective owner