An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# curljson

Wrapper to use JSON with [curl](https://curl.se/).

---

Front

---

## 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.