Replies: 1 comment 18 replies
-
Hi @MLuebbers, we apply the same rules as for XML here: "Implementers SHOULD trim leading and trailing whitespace before writing and SHOULD trim leading and trailing whitespace when reading attribute values (for XML schema conformance)" (see https://build.fhir.org/xml.html). There is no setting for this as it confuses all kinds of tooling. |
Beta Was this translation helpful? Give feedback.
18 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.
-
I have a FHIR JSON string I wish to deserialize to a Resource object. There is an identifier in the resource that has a leading space and must remain that way but when inspecting the resulting Resource POCO from the parser that space is gone. I was under the impression the parser should leave JSON string fields exactly as they are without removing any leading or trailing whitespace. The SerializationSettings by default seem to remove the whitespace but I couldn't find an equivalent for the ParserSettings. I couldn't find any documentation about this behaviour, is this intended?
Beta Was this translation helpful? Give feedback.
All reactions