Oskar Gewalli
Oskar Gewalli
I had the same problem...
Look at pull request #9
You could look at the c# port. I've modified the code to generate a bit more readable json : https://github.com/wallymathieu/GlobalPhone/commit/6eb4eb579ec1d7d740c03da3b3a3dc25a4cc9a19
Perhaps this should be closed, since the perf is good enough for many implementations? @jaredpalmer
To get better type safety for Newtonsoft.Json and FSharp.Data perhaps it would help to add a structure: ```f# [] type FleeceNumeric = | Long of long:int64 | Decimal of decimal:decimal...
This also causes trouble when trying to do lensing.
`JNumber s` implies that `s` is JsonPrimitive ...
Seems like F# Data us fixing this as well: https://www.nuget.org/packages/FSharp.Data/3.0.0-beta4 : > (Breaking Change) Don't silently convert decimals and floats to integers in JsonProvider.
https://github.com/fsharp/FSharp.Data/pull/1185