definy.json-get-string
- description
- The string of the key of a JSON object. none if it is not a string
- type
Fn(value: @definy.json, key: String) -> Union{#none, #some(String)}- expression
fn(value$0, key$1) =>
match @definy.json-get(value: $0, key: $1) {
#some(found$2) =>
match $2 {
#string(text$3) =>
#some($3),
_ =>
#none
},
#none(_) =>
#none
}- visibility
- public
definy.json-get-string (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: usASfOIl34b9MAqp7yd5YUgx3egdVB2PVVcg2wGerfE
content hash: 7spLrWubSWgsodnLieYxd8GRLkvtsVNLB9USIQvOaqQ