yaml2json
« Back to VersTracker
Description:
Command-line tool convert from YAML to JSON
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: yaml json converter cli go
Install: brew install yaml2json
About:
yaml2json is a lightweight command-line utility written in Go that converts YAML input to JSON output. It provides a fast and efficient way to transform configuration files and data structures between these two popular formats. The tool supports streaming input and output, making it suitable for use in pipelines and automated scripts.
Key Features:
  • Written in Go for high performance and single binary deployment
  • Supports streaming via standard input/output for pipeline integration
  • Handles complex nested YAML structures accurately
  • Simple, focused command-line interface
Use Cases:
  • Converting Kubernetes manifests or Helm values from YAML to JSON for processing with tools that require JSON
  • Transforming configuration files for application environments that use different formats
  • Parsing YAML data within shell scripts and converting it for use in JSON-based APIs
Alternatives:
  • yq – yq is a more comprehensive tool for complex YAML/XML/JSON querying and manipulation, while yaml2json is a simpler, single-purpose converter.
  • python -c 'import sys, yaml, json; print(json.dumps(yaml.safe_load(sys.stdin)))' – A standard Python one-liner that achieves the same result but requires a Python environment and is slower than the Go-based yaml2json.
Version History
Detected Version Rev Change Commit