AguaClara / aide_document-DEPRECATED

This module is no longer being maintained due to the transition to Onshape.
MIT License
0 stars 0 forks source link

Recursive Structure of JSON Parsing #7

Closed anthonyverghese closed 6 years ago

anthonyverghese commented 6 years ago

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.

anthonyverghese commented 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.

anthonyverghese commented 6 years ago

The changes necessary to make the code recursive should be made in json_to_latex.py.