You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 7, 2018. It is now read-only.
So, if you pass invalid utf sequence to .decode method, you'd receive ArgumentError while expecting OkJson::Error
OkJson.decode("\255")
ArgumentError: invalid byte sequence in UTF-8
from /gems/okjson/okjson.rb:264:in `match'
from /gems/okjson/okjson.rb:264:in `numtok'
from /gems/okjson/okjson.rb:253:in `tok'
from /gems/okjson/okjson.rb:213:in `lex'
from /gems/okjson/okjson.rb:44:in `decode'