google-api-ruby-client icon indicating copy to clipboard operation
google-api-ruby-client copied to clipboard

`JSON.pretty_generate` on response objects doesn't actually prettify

Open saicheems opened this issue 9 years ago • 3 comments

While the call no longer raises an exception, the output is the same as a call to to_json.

For example, the expected pretty output a response containing {'foo': 'bar'} is

{
  "foo": "bar"
}

Right now, it's printed as {"foo":"bar"}.

saicheems avatar May 31 '17 05:05 saicheems

Sorry for the delay. Are you still experiencing this issue?

TheRoyalTnetennba avatar Aug 15 '18 17:08 TheRoyalTnetennba

I can reproduce this. Created a PR with a fix.

dazuma avatar Jul 24 '19 02:07 dazuma

(This is actually an issue with the representable gem. The PR is a workaround.)

dazuma avatar Jul 24 '19 02:07 dazuma