Closed anthonyverghese closed 6 years ago
For example, the following json code would be properly parsed with the current code
"test_key_4": { "value":10.00, "units": "mg/L", "rand": "5" }, "test_key_5": { "value":"10", "units": "mg/L" }
but the following would not be properly parsed
"test_keys":{ test_key_4": { "value":10.00, "units": "mg/L", "rand": "5" }, "test_key_5": { "value":"10", "units": "mg/L" } }
We would like the nested structure to cause the variable names in the latex header file to be test_keys.test_key_4 and test_keys.test_key_5 to make it easy to locate where the values in the latex file came from.
The changes necessary to make the code recursive should be made in json_to_latex.py.
As of right now, our code does not parse json files with a nested structure. We would like to be able to parse more types of json files and not force users to abide by a specific structure other than the simple necessities.