Skip to main content

Recursively convert JSON including json-string to YAML

Project description

rj2y

This CLI tool is a simple utility to convert JSON to YAML. Especially useful when you want to convert JSON including embedded JSON as a string.

It may be convenient to reading server logs. Using with jq and yq is recommended.

Installation

pipx install rj2y

Usage

cat some.json | rj2y
rj2y some.json

Example

input json and output yaml

https://github.com/pollenjp/rj2y-py/blob/d237729c54be84f1dd78542bf4bd2476c7a16e3a/tests/unittest/test_main.py#L6-L39

https://github.com/pollenjp/rj2y-py/blob/d237729c54be84f1dd78542bf4bd2476c7a16e3a/tests/unittest/test_main.py#L45-L109

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rj2y-0.1.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

rj2y-0.1.1-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page