Global

Methods


loadJson(name)

Loads json file which may have comments.

If json file has key __parent with path to parent json it will be loaded and merged recursively.

Parameters:
Name Type Description
name string

Name of JSON file.

Source:
Throws:
  • If JSON file isn't parsable.

    Type
    Error
  • If there is circular parent reference.

    Type
    Error
Returns:
  • Object.
Type
object