properties2json — Convert a Java
.properties file to JSON
properties2json [<OPTIONS>] [<infile> [<outfile>]]
infile to a JSON object and write the
outfile. If not specified,
to standard input and standard output, respectively. The output is encoded in
Changed in version 0.6.0: Output encoding is now always UTF-8 instead of being determined by the locale.
Changed in version 0.7.0: Key ordering is now preserved by default instead of always being sorted
New in version 0.6.0.
Escape all non-ASCII characters in the output with
\uXXXXescape sequences. This overrides
--unicode. This is the default behavior.
Specifies the encoding of the input file; default value:
New in version 0.7.0.
Sort entries in output by key