fsprojects / Fleece

Json mapper for F#
http://fsprojects.github.io/Fleece
Apache License 2.0
199 stars 31 forks source link

Fix string roundtrip for Newtonsoft Json #136

Closed gusty closed 1 year ago

gusty commented 1 year ago

The issue is that Newtonsoft doesn't return the json value of a string, if you pass a string it will simply return that string, without additional quotes and escapes.

The fix is not to use ToString () (without arguments) as soon as you pass a formatting argument (either one) it does the right thing.