You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A shortcut. Equals doing -d [whatever] -H "Content-Type: application/json". This also supports @- to read JSON from stdin and @filename to read it from a given file. Does not check/verify that the data is actually conforming JSON.
--jp [part]
('jp' as short for "JSON part")
Build a JSON request body, and use the request header Content-Type: application/json.
Multiple --jp options can be provided on the same command line to add
multiple parts to the body.
[part] is an instruction how to build JSON content
The idea is to be able to create and pass on most simple JSON data bodies and
allow scripts and users to pass in parts of that data as shell variables etc
when required (== handle quoting conveniently).