MCPcopy Index your code
hub / github.com/brancz/gojsontoyaml

github.com/brancz/gojsontoyaml @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
1 symbols 4 edges 1 files 0 documented · 0% 2 cross-repo links

Browse by type

Functions 1 Types & classes 0
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

gojsontoyaml

This is a small tool written in go to convert json to yaml reading from STDIN and writing to STDOUT. The heavy lifting is actually done by ghodss/yaml and gopkg.in/yaml.v2.

Install

To install simply

go get github.com/brancz/gojsontoyaml

Usage

Simply pipe a json string into gojsontoyaml and it will print the converted yaml string to STDOUT.

$ echo '{"test":"test string with\\nmultiple lines"}' | gojsontoyaml
test: |-
  test string with
  multiple lines

Motivation

You may ask yourself why this was developed. The answer is simple, when I wrote this there was no simple to use binary for this purpose that supported yaml multiline strings. All alternatives out there that I tried kept line breaks in the string rather than making use of the yaml multiline strings.

Core symbols most depended-on inside this repo

Shape

Function 1

Languages

Go100%

Modules by API surface

main.go1 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add gojsontoyaml \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page