You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of 1.1, the JsonValue interface provides convenience methods to cast the value to JsonObject and JsonArray. Is there a reason to limit things to those two cases?
Currently, the approach to get a value via a pointer looks like:
As of 1.1, the
JsonValue
interface provides convenience methods to cast the value toJsonObject
andJsonArray
. Is there a reason to limit things to those two cases?Currently, the approach to get a value via a pointer looks like:
It would be slightly nicer for the following:
Similarly, methods for
asJsonNumber
andasJsonBoolean
, perhaps with overloads that tolerate theValueType
ofNULL
with a default argument.The text was updated successfully, but these errors were encountered: