diff options
author | Arthur <82575487+arthur-mountain@users.noreply.github.com> | 2024-11-01 00:02:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-31 09:02:17 -0700 |
commit | 30373274104f592975cb1510b286f6c51d8dcf28 (patch) | |
tree | 81026f23afa694acda37605c53784c45f48dd386 | |
parent | 50e1564600eaca3ff99ffd7a7f707f564da3af48 (diff) |
Update the raw json fields example (#1606)
-rw-r--r-- | docs/README.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/README.md b/docs/README.md index 4b866a04..5107e73e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -574,7 +574,7 @@ $ http PUT pie.dev/put \ | HTTP Headers `Name:Value` | Arbitrary HTTP header, e.g. `X-API-Token:123` | | URL parameters `name==value` | Appends the given name/value pair as a querystring parameter to the URL. The `==` separator is used. | | Data Fields `field=value` | Request data fields to be serialized as a JSON object (default), to be form-encoded (with `--form, -f`), or to be serialized as `multipart/form-data` (with `--multipart`) | -| Raw JSON fields `field:=json` | Useful when sending JSON and one or more fields need to be a `Boolean`, `Number`, nested `Object`, or an `Array`, e.g., `meals:='["ham","spam"]'` or `pies:=[1,2,3]` (note the quotes) | +| Raw JSON fields `field:=json` | Useful when sending JSON and one or more fields need to be a `Boolean`, `Number`, nested `Object`, or an `Array`, e.g., `meals:='["ham","spam"]'` or `pies:='[1,2,3]'` (note the quotes) | | File upload fields `field@/dir/file`, `field@file;type=mime` | Only available with `--form`, `-f` and `--multipart`. For example `screenshot@~/Pictures/img.png`, or `'cv@cv.txt;type=text/markdown'`. With `--form`, the presence of a file field results in a `--multipart` request | Note that the structured data fields aren’t the only way to specify request data: |