tools - Miscellaneous tools

inspec.tools.parse_json(filename)[source]

Parse a JSON file (filtering comments on the fly) into an OrderedDict.

Unofficial JSON comments look like:

// ...

or:

/*
 ...
*/

Source: D. Riquet