Fixing syntax error on JSON console out