From: shyouhei@... Date: 2017-10-26T01:17:11+00:00 Subject: [ruby-core:83569] [Ruby trunk Bug#14054][Rejected] Json parser bug 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: