JsonNavUtil¶
Utility for extracting optional string fields from JSON.
JsonNav does not have an as_string_or_none() method. This primitive provides equivalent functionality: given a JsonNav positioned on a field, it returns the String value if present or None if the JSON value is null. Raises an error if the navigation failed (key missing) or the value is any other type.
Constructors¶
create¶
Returns¶
- JsonNavUtil val^
Public Functions¶
string_or_none¶
Parameters¶
- json: JsonNav val
Returns¶
eq¶
Parameters¶
- that: JsonNavUtil val
Returns¶
- Bool val
ne¶
Parameters¶
- that: JsonNavUtil val
Returns¶
- Bool val