Metadata-Version: 2.1
Name: pyLoadModularJson
Version: 0.9.1
Summary: Load nested JSON files into a dictionary
Home-page: https://github.com/mugpahug/pyLoadModularJson
Author: Edwin Peters
Author-email: edwin.g.w.peters@gmail.com
License: MIT
Keywords: json,config,modular,nested
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: System :: Hardware
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Description-Content-Type: text/markdown
License-File: LICENCE

# pyModularJSON

Allows recursive loading of JSON files featuring comments.
Now uses json5 so it is a bit less picky on line terminations


Authored by Edwin Peters

## Install
`pip install pyLoadModularJson`

or

`setup.py install`

## Usage

Also check *tests* folder for a few examples

base.json:
```
// comments
{
    "param2a": 2,
    "nestedParam2a":{
	"a": "notaNumber",
	"c": "set by base"
    }
}
```

main.json:
```
// comments
{
    "configBase": ["base.json"], // parent config file name relative to this file
    "param1": 4,
    "nestedParam1":{
	"a":39,
	"b":["peee","e","new"],
	"c": "set by main"
    } 
}
```

In Python:
```
from pyLoadModularJson import loadModularJson

cfg = loadModularJson('base.json')

print(cfg)

```

Child files will overwrite attributes from base files.


See more examples in `tests`


