We should include descriptions of parameters to input file. The problem is that json does not support comments. In principle, they could be added but then all json validators will fail and comments must be stripped out before parsing the file. One possible option would be to add more structure, i.e. instead of having e.g.
Even better, we could introduce schema, and in that case, we could also validate (https://github.com/pboettch/json-schema-validator) the input against the schema and give clear error message if there is something wrong with the json file. Example:
Of course, simulation data and schema can be on different files if that's better. I bet there's json editors that takes schema and builds nice user interface based on that so that json files can be easily done.
We should include descriptions of parameters to input file. The problem is that json does not support comments. In principle, they could be added but then all json validators will fail and comments must be stripped out before parsing the file. One possible option would be to add more structure, i.e. instead of having e.g.
we could have
Even better, we could introduce schema, and in that case, we could also validate (https://github.com/pboettch/json-schema-validator) the input against the schema and give clear error message if there is something wrong with the json file. Example:
Of course, simulation data and schema can be on different files if that's better. I bet there's json editors that takes schema and builds nice user interface based on that so that json files can be easily done.