You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When reading, RawNumber() does not look for quotes.
But when writing, RawNumber() outputs quotes (because it calls WriteString() internally).
We changed our code to use RawValue() so output does not have quotes.
We use RawNumber() for monetary values where round-off is completely unacceptable.
Thanks,
The text was updated successfully, but these errors were encountered:
Also came across this when sending Reader events back into Writer, using kParseNumbersAsStringsFlag to preserve precision and was surprised to find numbers were being quoted.
Can override as follows in derived writer implementation, which is basically what bbeuning says above.
When reading, RawNumber() does not look for quotes.
But when writing, RawNumber() outputs quotes (because it calls WriteString() internally).
We changed our code to use RawValue() so output does not have quotes.
We use RawNumber() for monetary values where round-off is completely unacceptable.
Thanks,
The text was updated successfully, but these errors were encountered: