mirror of
https://github.com/zhigang1992/Argo.git
synced 2026-01-12 22:45:56 +08:00
This operator chooses between either the left hand side or the right hand side, whichever contains a successful value. If both sides are empty, the right hand side will be returned. Usage is as follows: <*> j <| "possible-key" <|> j <| "possible-key2" The precedence is set a bit below the precedence of the other operators (i.e. `<|`) so that parentheses are not necessary when constructing expressions.
8 lines
105 B
JSON
8 lines
105 B
JSON
{
|
|
"id": 1,
|
|
"userinfo": {
|
|
"name": "Very Cool User"
|
|
},
|
|
"email": "u.cool@example.com"
|
|
}
|