local-io: read/write json

Recipe for reading and writing JSON.