Writing to flat JSON through cmd line.