-
Notifications
You must be signed in to change notification settings - Fork 356
Closed
Description
JSON.parse 2.3.1 accepts { and [ as valid JSON, which caused a JSON::ParserError in 2.3.0.
2.3.0
> JSON.parse('{') # => JSON::ParserError: 783: unexpected token at '{'
> JSON.parse('[') # => JSON::ParserError: 434: unexpected token at ''
> JSON.parse('') # => JSON::ParserError: 783: unexpected token at ''
> JSON.parse('{}') # => {}
> JSON.parse('[]') # => []
> JSON.parse('{{}') # => JSON::ParserError: 783: unexpected token at '{{}'2.3.1
> JSON.parse('{') # => {}
> JSON.parse('[') # => []
> JSON.parse('') # => JSON::ParserError: source is not valid JSON!
> JSON.parse('{}') # => {}
> JSON.parse('[]') # => []
> JSON.parse('{{}') # => JSON::ParserError: unexpected token in object at '{}'!Metadata
Metadata
Assignees
Labels
No labels