icubilla / jsonexserializer

Automatically exported from code.google.com/p/jsonexserializer
0 stars 0 forks source link

Option to Escape whitespace characters #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently per the JSON standard, carriage returns, line feeds, and tabs are 
escaped inside strings in serialization output.

Have an option to turn this off for more readable output.

EscapeWhitespace

Original issue reported on code.google.com by elliott....@gmail.com on 5 Nov 2008 at 4:50

GoogleCodeExporter commented 9 years ago

Original comment by elliott....@gmail.com on 25 Jan 2009 at 4:45

GoogleCodeExporter commented 9 years ago

Original comment by elliott....@gmail.com on 25 Jan 2009 at 4:47

GoogleCodeExporter commented 9 years ago

Original comment by elliott....@gmail.com on 25 Jan 2009 at 4:48

GoogleCodeExporter commented 9 years ago
I think this should be a default, but it could be optional I supposed, but 
double
quotes in strings are getting escaped. That is if the string being serialized 
is "My
name is "Gary"." using either '\"' or with verbatim strings @"""" the serialized
string that results is: "My name is \"Gary\".". Let me know if there is an 
existing
work-around (other than using "'").
Thanks.

Original comment by gbadd...@gmail.com on 17 Jun 2009 at 8:16

GoogleCodeExporter commented 9 years ago
This issue actually pertains to escaping whitespace, not quotes.  There's
not really a workaround for what you are trying to do since that is how
quotes are supposed to be escaped according to the JSON standard.  What are
you expecting to see?

Original comment by elliott....@gmail.com on 18 Jun 2009 at 2:38