Feature/rework json

Reworked into mixins. These should probably be moved to the processor repo at some point.