properties2json

NAME

properties2json — Convert a Java .properties file to JSON

SYNOPSIS

properties2json [<OPTIONS>] [<infile> [<outfile>]]

Note

If the javaproperties package was installed but the properties2json script is not present, this command can still be run by replacing properties2json with python -m javaproperties.tojson on the command line.

DESCRIPTION

Convert a .properties file infile to a JSON object and write the results to outfile. If not specified, infile and outfile default to sys.stdin and sys.stdout, respectively.

OPTIONS

-E <encoding>, --encoding <encoding>

New in version 0.2.0.

Specifies the encoding of the input file; default value: iso-8859-1 (a.k.a. Latin-1)