Generation of JSON from python scripts
- report any inconsistencies found between a given python script and its JSON app file.
- yield a JSON app file that would be correct for the given python script.
This script may therefore be used to help write a JSON app file for a script, or, for the scripts whose does not have any JSON app file, to get one at build time without human work.
jsonfromscript requires sets of script/json files to compare. Or, more cunning, may consists into running
jsonfromscript over the codebase and failing if any one issue is found among existing JSON, forcing JSON to comply to or adapt the
jsonfromscript formalism, or to insert a special case in the unit tests themselves, thus documenting any non-standard behavior of a specific script.
On the long term (where all JSON app files are removed and produced at build), JSON from the previous run may be kept solely for the particular
jsonfromscript test chain.