mirror of
https://github.com/httpie/cli.git
synced 2026-10-12 02:15:37 +00:00
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 <[email protected]>
This commit is contained in:
co-authored by
Jakub Roztocil
parent
c8c135ffff
commit
ec4fb84254
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user