Utility method to read a json file schema Parameters: ----------- json_file : string file name for the json schema Returns: -------- dictionary, as serialized in the json_file
(json_file)
| 77 | |
| 78 | |
| 79 | def read_json(json_file): |
| 80 | """ |
| 81 | Utility method to read a json file schema |
| 82 | |
| 83 | Parameters: |
| 84 | ----------- |
| 85 | json_file : string |
| 86 | file name for the json schema |
| 87 | |
| 88 | Returns: |
| 89 | -------- |
| 90 | dictionary, as serialized in the json_file |
| 91 | """ |
| 92 | with open(json_file) as schema: |
| 93 | val = json.load(schema) |
| 94 | |
| 95 | return val |
| 96 | |
| 97 | |
| 98 | def get_etype_featnames(etype_name, schema_map): |