definy.json-get-array
- description
- The items of the array at key of the JSON object (empty when it is missing or not an array)
- type
Fn(value: @definy.json, key: String) -> List<@definy.json>
- expression
fn(value$0, key$1) =>
match @definy.json-get(value: $0, key: $1) {
#some(found$2) =>
match $2 {
#array(items$3) =>
$3,
_ =>
[]
},
#none(_) =>
[]
}- visibility
- public
definy.json-get-array (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: lmdZCdQSODgY3di8QhypivkfmGf1yt6oO6BAsqJ8-9U
content hash: 9A9kD3o-gl4p_zGUjf0vX2e4eXO2H_9cyo7AAeCm55k