Finished general json input/output classes. No clue if they work.