Narrows an AnyJson value to a JsonMap if it is type-compatible, or raises an error otherwise.
AnyJson
JsonMap
The value to test.
Optional
The error message to use if value is not type-compatible.
value
AssertionFailedError If the value was undefined.
Narrows an
AnyJson
value to aJsonMap
if it is type-compatible, or raises an error otherwise.