curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: curl --json has landed

From: Balakrishnan Balasubramanian via curl-users <curl-users_at_lists.haxx.se>
Date: Fri, 4 Feb 2022 17:45:50 -0500

Awesome Thanks!

One question though. From the blog:

> If you use multiple |--json| options on the same command line, the
contents from them will be concatenated before sent off.

I wonder why would that be useful. Concatenating two valid json objects
will result in invalid json.


On 2022-02-04 02:35, Daniel Stenberg via curl-users wrote:
> Hello,
>
> Sending JSON with curl just became a lot easier with this option. Try:
>
> $ jo name=daniel tool=curl | curl --json _at_- https://httpbin.org/post | jq
>
> Blog post on --json:
>
> https://daniel.haxx.se/blog/2022/02/02/curl-dash-dash-json/
>

-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-02-04