pub fn expect_type( object: &Map<String, Value>, expected: &str, ) -> Result<(), JsonError>
Check that object’s type is expected.
object
type
expected
When it is absent or another type.