any-json

Usage
usage: any-json [OPTIONS] [INPUT]
any-json can be used to convert (almost) anything to JSON.
This version supports: cson, hjson, ini, json, json5, xml, yaml
any-json will read the given input file or read from stdin.
Output format:
-j: will output as formatted JSON (default).
-c: will output as JSON (compact).
-h: will output as Hjson (Human JSON).
Optional input format (usually the file extension):
-format=FORMAT
-detect will try to detect the file format.
-help,
Install from npm
npm install any-json
API
See lib/index.js