Given a deep-search query path, returns an object property or array value from an AnyJson as a JsonMap, or the given default if a value was not found or was not type-compatible.
const obj = { foo: { bar: [{ a: 'b' }] } };
const value = getJsonMap(obj, 'foo.bar[1]', { c: 'd' });
// type of value -> JsonMap; value -> { c: 'd' }
Given a deep-search query path, returns an object property or array value from an AnyJson as a JsonMap, or
undefined
if a value was not found or was not type-compatible.