yaml2json - A command-line utility to convert a YAML file (.yml) to JSON file (.json)

  •        3749

A command-line utility to convert a YAML file (.yml) to JSON file (.json)

https://github.com/coolaj86/yaml2json

Dependencies:

js-yaml : 3.0.2

Tags
Implementation
License
Platform

   




Related Projects

remarshal - Convert between TOML, YAML and JSON

  •    Python

Convert between TOML, YAML and JSON. When installed provides the command line commands toml2yaml, toml2json, yaml2toml, yaml2json. json2toml and json2yaml for format conversion as well as toml2toml, yaml2yaml and json2json for reformatting and error detection. You will need Python 2.7 or Python 3.3 or later.

yaml

  •    CoffeeScript

Standalone JavaScript YAML 1.2 Parser & Encoder. Works under node.js and all major browsers. Also brings command line YAML/JSON conversion tools. Mainly inspired from Symfony Yaml Component.

yq - Command-line YAML and XML processor - jq wrapper for YAML/XML documents

  •    Python

Before using yq, you also have to install its dependency, jq. See the jq installation instructions for details and directions specific to your platform. Use the --width/-w argument to pass the line wrap width for string literals. All other command line arguments are forwarded to jq. yq forwards the exit code jq produced, unless there was an error in YAML parsing, in which case the exit code is 1. See the jq manual for more details on jq features and options.

carvel-ytt - YAML templating tool that works on YAML structure instead of text

  •    Go

To get started with ytt and to see examples, you use the online playground or download the binaries and run the playground locally. Carvel is better because of our contributors and maintainers. It is because of you that we can bring great software to the community. Please join us during our online community meetings. Details can be found on our Carvel website.

prettyjson - Package for formatting JSON data in a coloured YAML-style, perfect for CLI output

  •    Javascript

Package for formatting JSON data in a coloured YAML-style, perfect for CLI output. This will install prettyjson globally, so it will be added automatically to your PATH.


dasel - Query, update and convert data structures from the command line

  •    Go

Dasel (short for data-selector) allows you to query and modify data structures using selector strings. Comparable to jq / yq, but supports JSON, YAML, TOML, XML and CSV with zero runtime dependencies.

config - Config is a lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

  •    PHP

Config is a file configuration loader that supports PHP, INI, XML, JSON, and YML files. Config requires PHP 5.5.9+.

HackMyResume - Generate polished résumés and CVs in HTML, Markdown, LaTeX, MS Word, PDF, plain text, JSON, XML, YAML, smoke signal, and carrier pigeon

  •    Javascript

Create polished résumés and CVs in multiple formats from your command line or shell. Author in clean Markdown and JSON, export to Word, HTML, PDF, LaTeX, plain text, and other arbitrary formats. Fight the power, save trees. Compatible with FRESH and JRS resumes. HackMyResume is built with Node.js and runs on recent versions of OS X, Linux, or Windows. View the FAQ.

yj - CLI - Convert YAML <=> TOML <=> JSON <=> HCL

  •    Go

Convert between YAML, TOML, JSON, and HCL.

yaml - A better way to marshal and unmarshal YAML in Golang

  •    Go

A wrapper around go-yaml designed to enable a better way of handling YAML when marshaling to and from structs. In short, this library first converts YAML to JSON using go-yaml and then uses json.Marshal and json.Unmarshal to convert to or from the struct. This means that it effectively reuses the JSON struct tags as well as the custom JSON methods MarshalJSON and UnmarshalJSON unlike go-yaml. For a detailed overview of the rationale behind this method, see this blog post.

cli - A simple, fast, and fun package for building command line apps in Go

  •    Go

Notice: This is the library formerly known as github.com/codegangsta/cli -- Github will automatically redirect requests to this repository, but we recommend updating your references for clarity.cli is a simple, fast, and fun package for building command line apps in Go. The goal is to enable developers to write fast and distributable command line applications in an expressive way.

graphtage - A semantic diff utility and library for tree-like files such as JSON, JSON5, XML, HTML, YAML, and CSV

  •    Python

Graphtage is a command-line utility and underlying library for semantically comparing and merging tree-like structures, such as JSON, XML, HTML, YAML, plist, and CSS files. Its name is a portmanteau of “graph” and “graftage”—the latter being the horticultural practice of joining two trees together such that they grow as one. Graphtage performs an analysis on an intermediate representation of the trees that is divorced from the filetypes of the input files. This means, for example, that you can diff a JSON file against a YAML file. Also, the output format can be different from the input format(s). By default, Graphtage will format the output diff in the same file format as the first input file. But one could, for example, diff two JSON files and format the output in YAML. There are several command-line arguments to specify these transformations; please check the --help output for more information.

XcodeGen - A Swift command line tool for generating your Xcode project

  •    Swift

XcodeGen is a command line tool written in Swift that generates your Xcode project using your folder structure and a project spec. The project spec is a YAML or JSON file that defines your targets, configurations, schemes, custom build settings and many other options. All your source directories are automatically parsed and referenced appropriately while preserving your folder structure. Sensible defaults are used in many places, so you only need to customize what is needed. Very complex projects can also be defined using more advanced features.

YamlSwift - Load YAML and JSON documents using Swift

  •    Swift

Load YAML and JSON documents using Swift. YamlSwift parses a string of YAML document(s) (or a JSON document) and returns a Yaml enum value representing that string.

tmuxp - :computer: tmux session manager. built on libtmux

  •    Python

tmuxp, tmux session manager. built on libtmux. New to tmux? The Tao of tmux is available on Leanpub and Amazon Kindle. Read and browse the book for free on the web.

gojson - Automatically generate Go (golang) struct definitions from example JSON

  •    Go

gojson generates go struct definitions from json or yaml documents.Assuming $GOPATH/bin is in your PATH, you can now invoke gojson directly.

gomplate - A flexible commandline tool for template rendering

  •    Go

Read the docs at gomplate.hairyhenderson.ca. gomplate is a template renderer which supports a growing list of datasources, such as: JSON (including EJSON - encrypted JSON), YAML, AWS EC2 metadata, BoltDB, Hashicorp Consul and Hashicorp Vault secrets.

spectral - A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI v2 & v3

  •    TypeScript

Find more installation methods in our documentation. Spectral, being a generic YAML/JSON linter, needs a ruleset in order to be able to lint files. You can learn more about the rulesets here.






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.