Simplified example of reading and writing JSON