curl daniel.haxx.se

Curl gets a --json flag  ↦

Daniel Stenberg’s first step toward adding first-party JSON support to everyone’s favorite command-line URL transmitter is a flag that is basically a shortcut for the following flags:

--data [arg]
--header "Content-Type: application/json"
--header "Accept: application/json"

Will more come of this? Time (and the community) will tell…

The discussion has been ignited in the curl community about what, if anything, we should do in curl to make it a smoother and better tool when working with JSON. The offered opinions range from nothing (“curl is content agnostic”) to full-fledged JSON generator, parser and pretty-printer (or a combination in between).


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00