DataContractJsonSerializer always writes strict JSON.
At different points during deserialization (usually there are no end tags for arrays or objects or incorrect escaping or incorrectly formatted numbers), it accepts an incorrect, non-strict JSON.
However, I can definitely tell you that this is not one of these cases. DataContractJsonSerializer always requires a double-quoted string for JSON.
Hope this helps!
krisragh msft
source share