Fixing build errors in json printer.