A simple command to convert Typesafe config (including HOCON) to JSON. It prints JSON to stdout.
Usage: hocon2json [-p] srcFile [path]
Arguments
srcFile
: Source Typesafe config filepath
: Root path for generated JSON. When the source is{"a":{"b":{"c":1}}}
and path isa.b
, then JSON will be{"c":1}
.
Options
-p
: pretty print JSON
Use Conscript to install hocon2json.
cs tkawachi/hocon2json