getValueByPath

@Nullable()
public static Object getValueByPath(JsonNode object, Array<String> keys)

Gets the value of an object by a path.

getValueByPath({'a': {'b': v}}, ['a', 'b']) -> v

getValueByPath({'a': {'b': [{'c': v1}, {'c': v2}]}}, ['a', 'b[]', 'c']) -> [v1, v2]


@Nullable()
public static Object getValueByPath(JsonNode object, Array<String> keys, @Nullable() Object defaultValue)

Gets the value of an object by a path, returning a default value if the path does not exist.

getValueByPath({'a': {'b': v}}, ['a', 'b'], 'default') -> v

getValueByPath({'a': {'c': v}}, ['a', 'b'], 'default') -> 'default'