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