Move JSON code into it's own module