API should provide functions for determening if the JSON is a scalar / collection
tpecar-ltek opened this issue · 3 comments
tpecar-ltek commented
I have an application where a request can have either a single scalar or a collection and I need to invoke proper parsers based on that.
JSON_Validate()
allows for a single scalar, but then no funcitonality is exposed to determine that in user code.
The functionality is already there, but the functions are declared static, so I can't use them in application code.
tpecar-ltek commented
Updated issue to include all scalars (as defined by the library source code): string, number, ECMA defined literals (true, false, null)
tpecar-ltek commented
It would be beneficial if the function performing the check also returns the type of the object, in a similar manner as JSON_SearchT()
tpecar-ltek commented
I'll close this issue and rephrase it to make it more generic.