Add ability to read and write JSON.