https://github.com/ayosec/curljson
Wrapper to use JSON with curl
https://github.com/ayosec/curljson
curl
Last synced: 4 months ago
JSON representation
Wrapper to use JSON with curl
- Host: GitHub
- URL: https://github.com/ayosec/curljson
- Owner: ayosec
- License: apache-2.0
- Created: 2021-06-21T20:23:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-21T20:39:30.000Z (over 4 years ago)
- Last Synced: 2025-07-09T13:06:17.842Z (7 months ago)
- Topics: curl
- Language: Shell
- Homepage:
- Size: 83 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# curljson
Wrapper to use JSON with [curl](https://curl.se/).
---
---
## Installation
Copy the [`curljson`](./curljson) to any directory in your `$PATH` variable.
You need [jq](https://stedolan.github.io/jq/) and a recent version of curl. The
tool was tested with curl 7.64.
## Usage
```console
$ curljson [options] URL
$ curljson [options] URL < body.json
$ curljson [options] URL <<<'{"json": "object"}'
```
You can use any [curl option](https://curl.se/docs/manpage.html) with `curljson`.
Data received in the *stdin* (like `< body.json`) will be sent as a JSON object
in the request body.