<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/ext/json/lib/json.rb, branch v4.0.4</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/json] Improve generation options documentation</title>
<updated>2025-08-27T01:01:52+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2025-08-25T07:39:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d325e3ed706ec356c9439824ed82cbcdb4487859'/>
<id>d325e3ed706ec356c9439824ed82cbcdb4487859</id>
<content type='text'>
https://github.com/ruby/json/commit/3187c88c06
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/json/commit/3187c88c06
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typos</title>
<updated>2025-08-18T03:31:51+00:00</updated>
<author>
<name>Douglas Eichelberger</name>
<email>doug.eichelberger@gusto.com</email>
</author>
<published>2025-08-13T20:52:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e3ce56c9dc40d0eeb6d9de453e94621503afd9e6'/>
<id>e3ce56c9dc40d0eeb6d9de453e94621503afd9e6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/json] Deprecate duplicate keys in object</title>
<updated>2025-06-24T03:10:50+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2025-06-23T15:11:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=93fc29c65caf2cf3c1eb45823c638c2c4236dd19'/>
<id>93fc29c65caf2cf3c1eb45823c638c2c4236dd19</id>
<content type='text'>
There are few legitimate use cases for duplicate keys, and can
in some case be exploited.

Rather to always silently accept them, we should emit a warning,
and in the future require to explictly allow them.

https://github.com/ruby/json/commit/06f00a42e8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are few legitimate use cases for duplicate keys, and can
in some case be exploited.

Rather to always silently accept them, we should emit a warning,
and in the future require to explictly allow them.

https://github.com/ruby/json/commit/06f00a42e8
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/json] Add missing parser options documentation</title>
<updated>2025-06-24T03:10:50+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2025-06-23T15:22:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b310e7b3c771c2a015767d189df42e4cc18ad019'/>
<id>b310e7b3c771c2a015767d189df42e4cc18ad019</id>
<content type='text'>
https://github.com/ruby/json/commit/eed753ffde
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/json/commit/eed753ffde
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/json] Resync</title>
<updated>2024-11-05T17:00:36+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2024-11-05T15:35:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ca8f21ace86e9c7ab184b3f0087ff458c06b178c'/>
<id>ca8f21ace86e9c7ab184b3f0087ff458c06b178c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/json] Modernize heredocs</title>
<updated>2024-10-26T09:44:15+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2024-10-24T09:42:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1045b9f820b6892fb7b5b0a19a8fc959f20a8762'/>
<id>1045b9f820b6892fb7b5b0a19a8fc959f20a8762</id>
<content type='text'>
https://github.com/ruby/json/commit/fb25e94aea
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/json/commit/fb25e94aea
</pre>
</div>
</content>
</entry>
<entry>
<title>Use frozen string literals</title>
<updated>2024-10-26T09:44:15+00:00</updated>
<author>
<name>Étienne Barrié</name>
<email>etienne.barrie@gmail.com</email>
</author>
<published>2024-10-21T10:04:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=82f7550f65f9872f6d7bff1a876395c23bbd7fc1'/>
<id>82f7550f65f9872f6d7bff1a876395c23bbd7fc1</id>
<content type='text'>
Co-authored-by: Jean Boussier &lt;jean.boussier@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Jean Boussier &lt;jean.boussier@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename escape_slash in script_safe and also escape E+2028 and E+2029</title>
<updated>2023-12-01T07:47:06+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2023-04-13T17:22:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0dfeb172968cdaefca2ab828c94d3e5f44d91f8f'/>
<id>0dfeb172968cdaefca2ab828c94d3e5f44d91f8f</id>
<content type='text'>
It is rather common to directly interpolate JSON string inside
&lt;script&gt; tags in HTML as to provide configuration or parameters to a
script.

However this may lead to XSS vulnerabilities, to prevent that 3
characters need to be escaped:

  - `/` (forward slash)
  - `U+2028` (LINE SEPARATOR)
  - `U+2029` (PARAGRAPH SEPARATOR)

The forward slash need to be escaped to prevent closing the script
tag early, and the other two are valid JSON but invalid Javascript
and can be used to break JS parsing.

Given that the intent of escaping forward slash is the same than escaping
U+2028 and U+2029, I chos to rename and repurpose the existing `escape_slash`
option.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is rather common to directly interpolate JSON string inside
&lt;script&gt; tags in HTML as to provide configuration or parameters to a
script.

However this may lead to XSS vulnerabilities, to prevent that 3
characters need to be escaped:

  - `/` (forward slash)
  - `U+2028` (LINE SEPARATOR)
  - `U+2029` (PARAGRAPH SEPARATOR)

The forward slash need to be escaped to prevent closing the script
tag early, and the other two are valid JSON but invalid Javascript
and can be used to break JS parsing.

Given that the intent of escaping forward slash is the same than escaping
U+2028 and U+2029, I chos to rename and repurpose the existing `escape_slash`
option.
</pre>
</div>
</content>
</entry>
<entry>
<title>[flori/json] Fix incorrect `#` position in API doc</title>
<updated>2021-05-17T10:26:03+00:00</updated>
<author>
<name>Masafumi Koba</name>
<email>473530+ybiquitous@users.noreply.github.com</email>
</author>
<published>2020-12-23T02:20:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8a974dc83cd2c8a8befb0b612b4f18c3f6f55370'/>
<id>8a974dc83cd2c8a8befb0b612b4f18c3f6f55370</id>
<content type='text'>
This change fixes an incorrect `#` position in the API documentation of the `JSON` module.

https://github.com/flori/json/commit/dc4b62424f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change fixes an incorrect `#` position in the API documentation of the `JSON` module.

https://github.com/flori/json/commit/dc4b62424f
</pre>
</div>
</content>
</entry>
<entry>
<title>[flori/json] RDoc example for JSON.load</title>
<updated>2020-09-25T08:28:42+00:00</updated>
<author>
<name>BurdetteLamar</name>
<email>burdettelamar@yahoo.com</email>
</author>
<published>2020-07-04T14:21:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8c057bb845d57d20e285030bfd73bcb5ca1143f9'/>
<id>8c057bb845d57d20e285030bfd73bcb5ca1143f9</id>
<content type='text'>
https://github.com/flori/json/commit/e4eead665c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/flori/json/commit/e4eead665c
</pre>
</div>
</content>
</entry>
</feed>
