News for hackers. Stuff that matters.
Re:The time might come when we add some JSON specific comman... by 999900000999 on Thursday January 20, 2022 @01:35PM (#30012739)
On one hand, this is awesome.

But aren't there also several command line utilities which already support JSON.

Why cram new stuff into such an industry standard tool?

Re:The time might come when we add some JSON specific comman... by soheil on Thursday January 20, 2022 @01:47PM (#30012902)
But curl has so many features already, it's odd to say now is the time to stop adding more. There is even Socks4 proxy support, does anyone even use that now or ever?
Re:The time might come when we add some JSON specific comman... by ollien on Thursday January 20, 2022 @01:37PM (#30012770)
You kind of said it yourself: it's an industry standard tool, so it will (almost) always be available.
Re:The time might come when we add some JSON specific comman... by 999900000999 on Thursday January 20, 2022 @01:38PM (#30012776)
My concern is they'll accidentally break something.
Re:The time might come when we add some JSON specific comman... by bryanlarsen on Thursday January 20, 2022 @01:44PM (#30012860)
I trust Daniel Stenberg to not break something more than I trust any other tool that currently does JSON.
Re:The time might come when we add some JSON specific comman... by masklinn on Thursday January 20, 2022 @01:39PM (#30012804)
> But aren't there also several command line utilities which already support JSON.

There are command line utilities which consume, query, or format json.

But aside from e.g. httpie (which is essentially a competitor to Curl), which "several command-line utilities" make authoring JSON easy and convenient?

Because if you check point (3), the link, and the paragraph before it, this is entirely about sending valid JSON (ideally with the correct headers).

In fact the second section of the link in question literally states:

> # JSON response

> Not particular handling. Pipe output to jq or similar.

Re:The time might come when we add some JSON specific comman... by bonkabonka on Thursday January 20, 2022 @02:30PM (#30013552)
I mostly use `jo` to format JSON from the CLI (except when I have to use `jq` to do so and then I suffer).
Re:The time might come when we add some JSON specific comman... by Hjfrf on Thursday January 20, 2022 @01:51PM (#30012960)
ConvertTo-Json is a second example, if you're in that ecosystem.
Re:The time might come when we add some JSON specific comman... by 999900000999 on Thursday January 20, 2022 @01:49PM (#30012933)
You can author your JSON in Postman and then export to Curl.

Infact you can run postman on the command line

https://learning.postman.com/docs/running-collections/using-...

Or you can write your own script in Python to do this.

I really don't like adding new functionality to standardized tools. It's just risky.

Make an extension, call it CURLson, but don't cram it into curl.

Re:The time might come when we add some JSON specific comman... by edoceo on Thursday January 20, 2022 @01:40PM (#30012811)
JSON is used a lot, really a lot, with CURL. It's ubiquitous on the web. cURLs intention is to support all this common URL stuff. Adding JSON seems a natural fit to me.