Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 357 Bytes

File metadata and controls

25 lines (21 loc) · 357 Bytes

json-loader

data.json
{
  "obj": {
    "val": "hello"
  }
}
python code
import json_loader
# add directory with .json files (working directory in this case)
json_loader.install_json_loader('.')
# import .json file (data.json)
import data
# access to json values
val = data.obj.val
assert val == 'hello'