https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112014-08-17T15:14:46ZRuby Issue Tracking SystemRuby master - Bug #10143: JSON module does not conform to RFC 7159https://bugs.ruby-lang.org/issues/10143?journal_id=483882014-08-17T15:14:46Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Category</strong> set to <i>ext</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>naruse (Yui NARUSE)</i></li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>3</i></li><li><strong>Target version</strong> set to <i>2.6</i></li></ul> Ruby master - Bug #10143: JSON module does not conform to RFC 7159https://bugs.ruby-lang.org/issues/10143?journal_id=498212014-11-06T01:22:07ZAnonymous
<ul></ul><p>I cannot find another linter that would accept this as input. example: <a href="http://www.jslint.com" class="external">http://www.jslint.com</a><br>
I can however see that there are more examples of values in the RFC <a href="http://tools.ietf.org/html/rfc7159#section-13" class="external">http://tools.ietf.org/html/rfc7159#section-13</a>.<br>
If I am reading this correctly strings, numbers and booleans can be passed.</p>
<p>So all the following should be valid.<br>
JSON.parse('1')<br>
JSON.parse('this is a string')<br>
JSON.parse(42)<br>
JSON.parse(true)</p> Ruby master - Bug #10143: JSON module does not conform to RFC 7159https://bugs.ruby-lang.org/issues/10143?journal_id=498232014-11-06T04:00:57Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Third Party's Issue</i></li></ul><p>discussing in upstream <a href="https://github.com/flori/json/issues/206" class="external">https://github.com/flori/json/issues/206</a></p>