Files
Argo/ArgoTests/JSON/user_with_nested_name.json
Benedikt Terhechte 4f0065a218 Add <|> alternative operator
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.
2015-09-17 14:55:33 -07:00

8 lines
105 B
JSON

{
"id": 1,
"userinfo": {
"name": "Very Cool User"
},
"email": "u.cool@example.com"
}