Support parsing numbers representable by int64_t but not by number
as BigInt
s in returned messages of StructuredIrStream
s.
#116
Labels
bug
Something isn't working
Bug
nlohmann/json
library, whichclp-ffi
uses to serialize kv-pair log events into JSON, acknowledges there are implementations whose number types can store up only to 2^53-1 : https://json.nlohmann.me/features/types/number_handling/#number-interoperability; however, it does serialize numbers out of that range: https://github.com/nlohmann/json/blob/4a602df34e71afca2242b34c743d4cc2486cd071/tests/src/unit-serialization.cpp#L168-L183JSON.parse()
, loss of precision is expected. Below sample code illustrates the problem:clp-ffi-js
, cannot be accurately represented in the formatted messages displayed in the log-viewer.Potential solutions
yscope-log-viewer version
#85
Environment
The sample code was run with Node.js 22 which uses the V8 engine which is also used by any Chromium-based browsers such as Google Chrome and Microsoft Edge.
Reproduction steps
The text was updated successfully, but these errors were encountered: