Is there a way to serialize white space ? #503
KristianIvarsson
started this conversation in
General
Replies: 1 comment
-
|
Right now that is not possible. I have a PR (#508) that could be extended to handle this situation. There just need to add an space into the pattern. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Consider this (roundtrip) code
The strings are not by default written with
\"or\'and thus the strings are trimmed duringdeserialize()Writing a newline makes the resulting string be encapsulated thogh and thus they are equal after a roundtrip
I cannot see if there are any possible directives you can pass to the serialize-mechanism that you always want strings to be encapsulated with quotes or apostrophes
Does anyone know or is this just a flaw in the library?
p.s.
Of cource you can add quotes by your self, but then there will (sometimes) be double quotes (hence, the new-line-scenario)
d.s.
Beta Was this translation helpful? Give feedback.
All reactions