On this page
Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class · Ruby 4.1
JSON::ParserError
< JSON::JSONError
2 instance methods
This exception is raised if a parser error occurs.
Instance methods 2
Attributes
Read
One-based column number where the parser encountered an error, counted in Unicode codepoints. Is nil when raised by JSON::ResumableParser.
Read
Line number where the parser encountered an error. Is nil when raised by JSON::ResumableParser.