Re-working the json file generation so it's easier to parse in the processor.