open-source-parsers / jsoncpp

A C++ library for interacting with JSON.
Other
8.06k stars 2.63k forks source link

Set non-JSON-schema-defined is<type> functions to reflect the internal data storage type #1541

Open TTF2050 opened 2 months ago

TTF2050 commented 2 months ago

Closes #1361

Methods referencing schema-defined properties reflect the schema definitions. Methods referencing C++ data types reflect the underlying storage, as this is important for deciding how to extract a value without loss of precision. Using a combination of is<type> and isConvertibleTo methods should be sufficient for understanding whether a given value can be extracted as<type> with possible precision loss.