diff --git a/README.md b/README.md index 89a30f6..dfd9fc5 100644 --- a/README.md +++ b/README.md @@ -184,10 +184,9 @@ Policies are structured as trees. With the exception of subtrees under `some`, ` Selector syntax is closely based on a subset of [jq]. They operate on an [Invocation]'s `args` object. -For example, consider the following: +For example, consider the following `args` from an `Invocation`: -``` js -// Invocation +``` json { "args": { "from": "alice@example.com", @@ -214,13 +213,7 @@ NOTE: You cannot add _any_ indentation to this table if you want - - -``` json -"." -``` - - +
"."
```json @@ -237,13 +230,7 @@ NOTE: You cannot add _any_ indentation to this table if you want - - -``` json -".title" -``` - - +
".title"
@@ -255,15 +242,7 @@ NOTE: You cannot add _any_ indentation to this table if you want - - - -``` json -".cc" -``` - - - +
".cc"
``` json @@ -274,16 +253,9 @@ NOTE: You cannot add _any_ indentation to this table if you want +
".to[1]"
-``` json -".to[1]" -``` - - - - - ``` json "carol@not.example.com" ``` @@ -292,18 +264,22 @@ NOTE: You cannot add _any_ indentation to this table if you want +
".to[-1]"
``` json -".to[-1]" +"dan@example.com" ``` + + + +
".to[99]?"
- ``` json -"dan@example.com" +null ```