implement JSON parsing patch from https://github.com/getsentry/raven-ruby/issues/170