Store the enums in a json file.

This will make it easier to code-generate code that involves the
various enums.