omise / omise-ruby

Omise Ruby Library
https://docs.opn.ooo
MIT License
40 stars 20 forks source link

parse JSON instead of load JSON #61

Open midnight-wonderer opened 2 weeks ago

midnight-wonderer commented 2 weeks ago

Description

Decision(s)

JSON.load does not raise rescue-friendly errors. (See https://github.com/omise/omise-ruby/issues/60.)
Use JSON.parse like everyone else.

Business impact (if any)

When the exception is rescued properly, the business interruption is prevented.