2 * Security fix for JSON create_additions default value. It should not be
3 possible to create additions unless
4 explicitely requested by setting the create_additions argument to true or
5 using the JSON.load/dump interface.
6 * Backport change that corrects Time serialisation/deserialisation on some
9 * Fix memory leak when used from multiple JRuby. (Patch by
11 * Apply patch by Eric Wong <nocode@yhbt.net> that fixes garbage collection problem
12 reported in https://github.com/flori/json/issues/46.
13 * Add :quirks_mode option to parser and generator.
14 * Add support for Rational and Complex number additions via json/add/complex
15 and json/add/rational requires.
17 * Alias State#configure method as State#merge to increase duck type synonymy with Hash.
18 * Add as_json methods in json/add/core, so rails can create its json objects
21 * Apply documentation patch by Cory Monty <cory.monty@gmail.com>.
22 * Add gemspecs for json and json_pure.
23 * Fix bug in jruby pretty printing.
24 * Fix bug in object_class and array_class when inheriting from Hash or Array.
26 * Made rake-compiler build a fat binary gem. This should fix issue
27 https://github.com/flori/json/issues#issue/54.
29 * Included Java source codes for the Jruby extension made by Daniel Luz
31 * Output full exception message of deep_const_get to aid debugging.
32 * Fixed an issue with ruby 1.9 Module#const_defined? method, that was
33 reported by Riley Goodside.
35 * Fixed oversight reported in http://github.com/flori/json/issues/closed#issue/23,
36 always create a new object from the state prototype.
37 * Made pure and ext api more similar again.
39 * Manage data structure nesting depth in state object during generation. This
40 should reduce problems with to_json method definіtions that only have one
42 * Some fixes in the state objects and additional tests.
44 * Fixes build problem for rubinius under OS X, http://github.com/flori/json/issues/closed#issue/25
45 * Fixes crashes described in http://github.com/flori/json/issues/closed#issue/21 and
46 http://github.com/flori/json/issues/closed#issue/23
48 * Fixed some test assertions, from Ruby r27587 and r27590, patch by nobu.
49 * Fixed issue http://github.com/flori/json/issues/#issue/20 reported by
50 electronicwhisper@github. Thx!
52 * Applied patch from naruse Yui NARUSE <naruse@airemix.com> to make building with
53 Microsoft Visual C possible again.
54 * Applied patch from devrandom <c1.github@niftybox.net> in order to allow building of
55 json_pure if extensiontask is not present.
56 * Thanks to Dustin Schneider <dustin@stocktwits.com>, who reported a memory
57 leak, which is fixed in this release.
58 * Applied 993f261ccb8f911d2ae57e9db48ec7acd0187283 patch from josh@github.
60 * Fix for a bug reported by Dan DeLeo <dan@kallistec.com>, caused by T_FIXNUM
61 being different on 32bit/64bit architectures.
63 * Major speed improvements and building with simplified
64 directory/file-structure.
65 * Extension should at least be comapatible with MRI, YARV and Rubinius.
67 * Triger const_missing callback to make Rails' dynamic class loading work.
69 * Added a State#[] method which returns an attribute's value in order to
70 increase duck type compatibility to Hash.
72 * Made some changes to make the building of the parser/generator compatible
75 * Added :symbolize_names option to Parser, which returns symbols instead of
76 strings in object names/keys.
78 * fast_generate now raises an exeception for nan and infinite floats.
79 * On Ruby 1.8 json supports parsing of UTF-8, UTF-16BE, UTF-16LE, UTF-32BE,
80 and UTF-32LE JSON documents now. Under Ruby 1.9 the M17n conversion
81 functions are used to convert from all supported encodings. ASCII-8BIT
82 encoded strings are handled like all strings under Ruby 1.8 were.
83 * Better documentation
85 * Added forgotten main doc file extra_rdoc_files.
87 * Applied a patch by OZAWA Sakuro <sakuro@2238club.org> to make json/pure
88 work in environments that don't provide iconv.
89 * Applied patch by okkez_ in order to fix Ruby Bug #1768:
90 http://redmine.ruby-lang.org/issues/show/1768.
91 * Finally got around to avoid the rather paranoid escaping of ?/ characters
92 in the generator's output. The parsers aren't affected by this change.
93 Thanks to Rich Apodaca <rapodaca@metamolecular.com> for the suggestion.
95 * Security Fix for JSON::Pure::Parser. A specially designed string could
96 cause catastrophic backtracking in one of the parser's regular expressions
97 in earlier 1.1.x versions. JSON::Ext::Parser isn't affected by this issue.
98 Thanks to Bartosz Blimke <bartosz@new-bamboo.co.uk> for reporting this
100 * This release also uses a less strict ruby version requirement for the
101 creation of the mswin32 native gem.
103 * No changes. І tested native linux gems in the last release and they don't
104 play well with different ruby versions other than the one the gem was built
105 with. This release is just to bump the version number in order to skip the
106 native gem on rubyforge.
108 * Started to build gems with rake-compiler gem.
109 * Applied patch object/array class patch from Brian Candler
110 <B.Candler@pobox.com> and fixes.
112 * Fixed a bug in the creation of serialized generic rails objects reported by
113 Friedrich Graeter <graeter@hydrixos.org>.
114 * Deleted tests/runner.rb, we're using testrb instead.
115 * Editor supports Infinity in numbers now.
116 * Made some changes in order to get the library to compile/run under Ruby
118 * Improved speed of the code path for the fast_generate method in the pure
121 * Wesley Beary <monki@geemus.com> reported a bug in json/add/core's DateTime
122 handling: If the nominator and denominator of the offset were divisible by
123 each other Ruby's Rational#to_s returns them as an integer not a fraction
124 with '/'. This caused a ZeroDivisionError during parsing.
125 * Use Date#start and DateTime#start instead of sg method, while
126 remaining backwards compatible.
127 * Supports ragel >= 6.0 now.
128 * Corrected some tests.
129 * Some minor changes.
131 * Remember default dir (last used directory) in editor.
132 * JSON::Editor.edit method added, the editor can now receive json texts from
133 the clipboard via C-v.
134 * Load json texts from an URL pasted via middle button press.
135 * Added :create_additions option to Parser. This makes it possible to disable
136 the creation of additions by force, in order to treat json texts as data
137 while having additions loaded.
138 * Jacob Maine <jmaine@blurb.com> reported, that JSON(:foo) outputs a JSON
139 object if the rails addition is enabled, which is wrong. It now outputs a
140 JSON string "foo" instead, like suggested by Jacob Maine.
141 * Discovered a bug in the Ruby Bugs Tracker on rubyforge, that was reported
142 by John Evans lgastako@gmail.com. He could produce a crash in the JSON
143 generator by returning something other than a String instance from a
144 to_json method. I now guard against this by doing a rather crude type
145 check, which raises an exception instead of crashing.
147 * Yui NARUSE <naruse@airemix.com> sent some patches to fix tests for Ruby
148 1.9. I applied them and adapted some of them a bit to run both on 1.8 and
150 * Introduced a JSON.parse! method without depth checking for people who like
152 * Made generate and pretty_generate methods configurable by an options hash.
153 * Added :allow_nan option to parser and generator in order to handle NaN,
154 Infinity, and -Infinity correctly - if requested. Floats, which aren't numbers,
155 aren't valid JSON according to RFC4627, so by default an exception will be
156 raised if any of these symbols are encountered. Thanks to Andrea Censi
157 <andrea.censi@dis.uniroma1.it> for his hint about this.
158 * Fixed some more tests for Ruby 1.9.
159 * Implemented dump/load interface of Marshal as suggested in ruby-core:11405
160 by murphy <murphy@rubychan.de>.
161 * Implemented the max_nesting feature for generate methods, too.
162 * Added some implementations for ruby core's custom objects for
163 serialisation/deserialisation purposes.
165 * Implemented max_nesting feature for parser to avoid stack overflows for
166 data from untrusted sources. If you trust the source, you can disable it
167 with the option max_nesting => false.
168 * Piers Cawley <pdcawley@bofh.org.uk> reported a bug, that not every
169 character can be escaped by ?\ as required by RFC4627. There's a
170 contradiction between David Crockford's JSON checker test vectors (in
171 tests/fixtures) and RFC4627, though. I decided to stick to the RFC, because
172 the JSON checker seems to be a bit older than the RFC.
173 * Extended license to Ruby License, which includes the GPL.
174 * Added keyboard shortcuts, and 'Open location' menu item to edit_json.rb.
176 * Applied a patch from Yui NARUSE <naruse@airemix.com> to make JSON compile
177 under Ruby 1.9. Thank you very much for mailing it to me!
178 * Made binary variants of JSON fail early, instead of falling back to the
179 pure version. This should avoid overshadowing of eventual problems while
180 loading of the binary.
182 * Improved performance of pure variant a bit.
183 * The ext variant of this release supports the mswin32 platform. Ugh!
185 * Ext Parser didn't parse 0e0 correctly into 0.0: Fixed!
187 * Forgot some object files in the build dir. I really like that - not!
189 * Added C implementations for the JSON generator and a ragel based JSON
191 * Much more tests, especially fixtures from json.org.
192 * Further improved conformance to RFC4627.
194 * Conform more to RFC4627 for JSON: This means JSON strings
195 now always must contain exactly one object "{ ... }" or array "[ ... ]" in
196 order to be parsed without raising an exception. The definition of what
197 constitutes a whitespace is narrower in JSON than in Ruby ([ \t\r\n]), and
198 there are differences in floats and integers (no octals or hexadecimals) as
200 * Added aliases generate and pretty_generate of unparse and pretty_unparse.
202 * Catch an Iconv::InvalidEncoding exception, that seems to occur on some Sun
203 boxes with SunOS 5.8, if iconv doesn't support utf16 conversions. This was
204 reported by Andrew R Jackson <andrewj@bcm.tmc.edu>, thanks a bunch!
206 * Fixed a bug in handling solidi (/-characters), that was reported by
207 Kevin Gilpin <kevin.gilpin@alum.mit.edu>.
209 * Fixed a bug related to escaping with backslashes. Thanks for the report go
210 to Florian Munz <surf@theflow.de>.
212 * Initial Rubyforge Version