From: naruse@... Date: 2014-08-17T15:14:46+00:00 Subject: [ruby-core:64435] [ruby-trunk - Bug #10143] [Assigned] JSON module does not conform to RFC 7159 Issue #10143 has been updated by Yui NARUSE. Category set to ext Status changed from Open to Assigned Assignee set to Yui NARUSE Priority changed from Normal to Low Target version set to next minor ---------------------------------------- Bug #10143: JSON module does not conform to RFC 7159 https://bugs.ruby-lang.org/issues/10143#change-48388 * Author: Chibi Magic * Status: Assigned * Priority: Low * Assignee: Yui NARUSE * Category: ext * Target version: next minor * ruby -v: ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- From RFC 7159: http://tools.ietf.org/html/rfc7159 ~~~ A JSON text is a serialized value. Note that certain previous specifications of JSON constrained a JSON text to be an object or an array. ~~~ This means that the following should be valid: `JSON.parse('1') JSON.parse('this is a string') ` However, they each currently return a JSON::ParserError: `A JSON text must at least contain two octets!` or `757: unexpected token at 'this is a string'` -- https://bugs.ruby-lang.org/