[#83107] Alias Enumerable#include? to Enumerable#includes? — Alberto Almagro <albertoalmagro@...>

Hello,

9 messages 2017/10/04

[ruby-core:83569] [Ruby trunk Bug#14054][Rejected] Json parser bug

From: shyouhei@...
Date: 2017-10-26 01:17:11 UTC
List: ruby-core #83569
Issue #14054 has been updated by shyouhei (Shyouhei Urabe).

Status changed from Open to Rejected

It's just because your copy of json gem is too old.

```
[1] pry(main)> require 'json'
=> true
[2] pry(main)> JSON::VERSION
=> "2.1.0"
[3] pry(main)> JSON.parse("true")
=> true
[4] pry(main)>
```

----------------------------------------
Bug #14054: Json parser bug
https://bugs.ruby-lang.org/issues/14054#change-67594

* Author: spuyet (S辿bastien Puyet)
* Status: Rejected
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Hello,

When i do:

```ruby
JSON.parse("true") # => JSON::ParserError: 784: unexpected token at 'true'
true.to_json # => "true"
```

The "true" or even "false" are valid according to the JSON standard (https://tools.ietf.org/html/rfc7159):

WDYT about this ?

Cheers,

S辿bastien





-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next