diff options
author | Boris Verkhovskiy <boris.verk@gmail.com> | 2023-05-23 15:11:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-23 05:11:41 -0700 |
commit | ec4fb84254fadc56e95cc9dda9a384f2155812aa (patch) | |
tree | 5a508cfe16e62f796dc09de7284a1adc14d387b6 | |
parent | c8c135ffff0297f42e90ad7f049395b4c1fc1bad (diff) |
Document restriction on top-level JSON types explicitly (#1496)
* Document restriction on top-level JSON types explicitly
* Update docs/README.md
---------
Co-authored-by: Jakub Roztocil <jakub@roztocil.co>
-rw-r--r-- | docs/README.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/README.md b/docs/README.md index 173ccd7a..850ba150 100644 --- a/docs/README.md +++ b/docs/README.md @@ -915,6 +915,8 @@ http --offline --print=B pie.dev/post \ ] ``` +Sending scalar JSON types (a single `null`, `true`, `false`, string or number) as the top-level object is impossible using the key/value syntax. But you can still pass it via [`--raw='<value>'`](#raw-request-body). + ##### Escaping behavior Nested JSON syntax uses the same [escaping rules](#escaping-rules) as |