http: use inspect instead of JSON.generate

Because it is a Ruby object received by user. It is not derived from
JSON data.