[#66126] Creation/Conversion methods/functions table for Ruby types — SASADA Koichi <ko1@...>
Hi,
5 messages
2014/11/07
[#66248] [ruby-trunk - Feature #10423] [PATCH] opt_str_lit*: avoid literal string allocations — normalperson@...
Issue #10423 has been updated by Eric Wong.
3 messages
2014/11/13
[#66595] [ruby-trunk - Bug #10557] [Open] Block not given when the argument is a string — bartosz@...
Issue #10557 has been reported by Bartosz Kopinski.
3 messages
2014/11/30
[ruby-core:66112] [ruby-trunk - Bug #10143] [Third Party's Issue] JSON module does not conform to RFC 7159
From:
naruse@...
Date:
2014-11-06 04:00:57 UTC
List:
ruby-core #66112
Issue #10143 has been updated by Yui NARUSE.
Status changed from Assigned to Third Party's Issue
discussing in upstream https://github.com/flori/json/issues/206
----------------------------------------
Bug #10143: JSON module does not conform to RFC 7159
https://bugs.ruby-lang.org/issues/10143#change-49823
* Author: Chibi Magic
* Status: Third Party's Issue
* 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/