docs: fixed sample json payload parse error (#7484)

Fixed malformed json example (removed extra comma). Here's the payload parse error I was running into with the example.

```
{
  "rotation_period":"12h",
  "verification_ttl":43200,
}
```

Vault does not like this JSON.

```
curl -s \
    --header "X-Vault-Token: ..." \
    --request POST \
    --data @payload-2.json \
    http://127.0.0.1:8200/v1/identity/oidc/key/named-key-001 | jq
{
  "errors": [
    "failed to parse JSON input: invalid character '}' looking for beginning of object key string"
  ]
}
```
This commit is contained in:
Justin Weissig 2019-09-17 02:42:01 -07:00 committed by Michel Vocks
parent 0caff07201
commit ec41f0d775
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ This endpoint creates or updates a named key which is used by a role to sign tok
```json
{
"rotation_period":"12h",
"verification_ttl":43200,
"verification_ttl":43200
}
```