news.volyx.in

The time might come when we add some JSON specific command line options (curl.se)

536 points by dennis-tra · 1701 days ago · 177 comments on HN

Article summary

The article discusses the potential addition of JSON-specific command line options to curl. The proposal is inspired by the jo tool and aims to improve curl's handling of JSON data. The article does not provide a detailed explanation of the proposed changes, but rather serves as a starting point for discussion. The curl maintainer is considering adding JSON support to the tool.

Main themes

  • JSON support in curl
  • Command line tools
  • Data format standards
  • Tooling and workflow
  • JSON specification and implementation

What commenters say

  • Adding JSON support to curl could make it easier to work with JSON data, but some commenters think it's unnecessary and that existing tools like HTTPie are sufficient. Some commenters believe that JSON is underspecified, which could lead to incompatibilities between implementations. Others argue that JSON is well-specified, but the mapping of the JSON data model to language-specific data models can be ambiguous. The addition of JSON support to curl could potentially create a de facto standard for JSON handling, which could be beneficial or problematic depending on the implementation. Some commenters think that using existing tools like HTTPie or xh is a better solution than adding JSON support to curl. The potential addition of JSON support to curl has sparked a discussion about the trade-offs between using a single, ubiquitous tool like curl versus specialized tools like HTTPie. The update cycle for curl is likely to be faster than adding a new tool to default installations, but this may vary depending on the distribution and the nature of the change.
  • themes': [