Add simple JSON writer for debugging