A simple command to convert Typesafe config (including HOCON) to JSON.
Scala
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
project
src/main
.gitignore
README.md
build.sbt
publish.sbt
version.sbt

README.md

hocon2json

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 file
  • path: Root path for generated JSON. When the source is {"a":{"b":{"c":1}}} and path is a.b, then JSON will be {"c":1}.

Options

  • -p: pretty print JSON

Installation

Use Conscript to install hocon2json.

cs tkawachi/hocon2json