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
This is because every adapter class defines a ParseError object (which MultiJson uses to catch parse errors - see here). However the :json_common adapter does not define it's own ParseError, leading to a NameError when MultiJson tries to access it.
It looks like defining a ParseError on the :json_common adapter would fix the issue (though what is the correct parse error class to catch?)
The text was updated successfully, but these errors were encountered:
With most multi_json adapters, if I try to parse invalid JSON, a
MultiJson::ParseError
is raised. For example:However, the
:json_common
adapter raises aNameError
:This is because every adapter class defines a
ParseError
object (which MultiJson uses to catch parse errors - see here). However the:json_common
adapter does not define it's ownParseError
, leading to aNameError
when MultiJson tries to access it.It looks like defining a
ParseError
on the:json_common
adapter would fix the issue (though what is the correct parse error class to catch?)The text was updated successfully, but these errors were encountered: