Closed yohm closed 4 years ago
When result contains an invalid JSON value such as Infinity, JSON.pretty_generate raises an error. To fallback the error, we catch JSON::GeneratorError and replace it with to_json.
JSON.pretty_generate
to_json
When result contains an invalid JSON value such as Infinity,
JSON.pretty_generate
raises an error. To fallback the error, we catch JSON::GeneratorError and replace it withto_json
.