1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-21 17:16:30 +02: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 <jakub@roztocil.co>
This commit is contained in:
Boris Verkhovskiy 2023-05-23 15:11:41 +03:00 committed by GitHub
parent c8c135ffff
commit ec4fb84254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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