Program to write definitions to json file

write defs to json file