Framework for exporting data to json written, still needs actual logic though.