I’m loading / parsing data from JSON files…
I’m trying to automatically deduce JSON value types… my test case is a Number (1).
JSONValue::GetValueType() and JSONValue::GetValueTypeName() seem to work fine - in my test case, they tell me that the type is “Number”.
But JSONValue::GetVariant() fails to resolve to a known type, and returns a dud Variant object.
JSONValue::GetDouble() works fine in the case I performed my own typechecking.
What am I missing here?
Is there not a reasonably complete mapping between JSON types and Variant types?
Happy to provide example code and data to reproduce the issue.