properties2json
NAME
properties2json — Convert a Java .properties file to JSON
SYNOPSIS
properties2json [<options>] [<infile> [<outfile>]]
DESCRIPTION
Convert a .properties file infile to a JSON object and write the
results to outfile. If not specified, infile and outfile default
to standard input and standard output, respectively. The output is encoded in
UTF-8.
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
OPTIONS
- -A, --ascii
Added in version 0.6.0.
Escape all non-ASCII characters in the output with
\uXXXXescape sequences. This overrides--unicode. This is the default behavior.
- -E ENCODING, --encoding ENCODING
Specifies the encoding of the input file; default value:
iso-8859-1(a.k.a. Latin-1)
- -S, --sort-keys
Added in version 0.7.0.
Sort entries in output by key