blob: c6494611d53175f871739d71720fe330aa4df247 [file] [log] [blame]
Tatu Saloranta55bfa002012-05-14 22:49:54 -07001Version: 2.1.0
Tatu Saloranta703bf4a2012-01-11 22:14:37 -08002
3Release date:
Tatu Saloranta3e96cf62012-10-05 21:38:16 -07004 xx-Oct-2012
Tatu Saloranta703bf4a2012-01-11 22:14:37 -08005
6Description:
Tatu Saloranta3e96cf62012-10-05 21:38:16 -07007 New minor version for 2.x series. Major improvements in multiple areas,
8 including:
9
10 - Dataformat auto-detection
11 - More `@JsonFormat.shape` variant to serialize Collections as
12 JSON Objects, POJOs as JSON Arrays (csv-like).
13 - Much more configuration accessible via ObjectReader, ObjectWriter
14 - New mechanism for JSON Schema generation, other uses (in future)
Tatu Salorantac2776412012-05-14 19:40:57 -070015
16Fixes:
17
Tatu Saloranta01006e32012-08-24 14:35:55 -070018* [JACKSON-830]/[Issue#19]: Change OSGi bundle name to be fully-qualified
Tatu Salorantae8c1b532012-08-29 11:49:21 -070019* ]JACKSON-847]: Make @JsonIdentityInfo work with property-based creator
Tatu Salorantabc483d12012-08-01 23:35:59 -070020* [JACKSON-851]: State corruption with ObjectWriter, DefaultPrettyPrinter
21 (reported by Duncan A)
Tatu Saloranta8075bfa2012-09-29 22:55:20 -070022* [Issue#75]: Too aggressive KeySerializer caching
Tatu Saloranta01006e32012-08-24 14:35:55 -070023* Minor fix wrt [Issue#11], coercion needed extra checks
Tatu Salorantafcbce112012-06-28 14:43:43 -070024
Tatu Salorantace7398c2012-05-30 20:45:03 -070025Improvements:
26
Tatu Salorantaac1f2ab2012-08-01 19:49:20 -070027* [JACKSON-758]: Remove 'IOException' from throws clauses of "writeValueAsString"
28 and "writeValueAsBytes" of ObjectMapper/ObjectWriter
29 (suggested by G-T Chen)
Tatu Salorantace7398c2012-05-30 20:45:03 -070030* [JACKSON-839]: Allow "upgrade" of integer number types for
31 UntypedObjectDeserializer, even with default typing enabled.
Tatu Saloranta11cec4d2012-07-22 22:33:20 -070032* [JACKSON-850]: Allow use of zero-arg factory methods as "default creator"
33 (suggested by Razvan D)
Tatu Saloranta7ccce012012-08-04 16:17:54 -070034* [Issue#9]: Implement 'required' JSON Schema attribute for bean properties
35* [Issue#20]: Add new exception type, InvalidFormatException (sub-type of
Tatu Salorantadd348562012-07-18 17:25:02 -070036 JsonMappingException) to indicate data format problems
37 (suggested by HolySamosa@github)
Tatu Saloranta2aa6dc82012-08-29 23:06:06 -070038* [Issue#30]: ObjectReader and ObjectWriter now try to pre-fetch root
Tatu Saloranta15d6ea22012-08-03 18:29:23 -070039 (de)serializer if possible; minor performance improvement (2% for small POJOs).
Tatu Saloranta2aa6dc82012-08-29 23:06:06 -070040* [Issue#33]: Simplified/clarified definition of 'ObjectReader.readValues()';
Tatu Salorantaa12061f2012-07-20 21:42:26 -070041 minor change in behavior for JSON Array "wrapped" sequences
Tatu Saloranta2aa6dc82012-08-29 23:06:06 -070042* [Issue#60]: Add 'JsonNode.hasNonNull(...)' method(s)
43 (suggested by Jeff S on mailing list)
Tatu Salorantaeb4e6b12012-08-30 19:02:17 -070044* [Issue#64]: Add new "standard" PropertyNamingStrategy, PascalCaseStrategy
45 (PropertyNamingStrategy.PASCAL_CASE_TO_CAMEL_CASE)
46 (contributed by Sean B)
Tatu Saloranta0dc8dec2012-09-06 17:08:29 -070047* [Issue#65]: Add getters to `ObjectMapper`, DeserializationContext/-Factory.
48 (contributed by Dmitry K)
Tatu Salorantaab374c72012-09-04 22:10:52 -070049* [Issue#69]: Add `PropertyName` abstraction, new methods in AnnotationIntrospector
Tatu Saloranta4984d592012-09-30 18:04:39 -070050* [Issue#80]: Make `DecimalNode` normalize input, to make "1.0" and "1.00"equal
51 (reported by fge@github)
Tatu Salorantace7398c2012-05-30 20:45:03 -070052
Tatu Saloranta6cada0a2012-07-31 22:24:03 -070053New features:
54
Tatu Salorantad163f5e2012-08-20 16:49:15 -070055* [Issue#15]: Support data format auto-detection via ObjectReader (added
56 'withFormatDetection(...)' fluent factories)
Tatu Saloranta767cead2012-08-13 16:27:45 -070057* [Issue#21]: Add 'ObjectNode.set(...)' method (and related) to improve
58 chaining, semantic consistency of Tree Model API
59 (suggested by fge@Github)
Tatu Saloranta7ccce012012-08-04 16:17:54 -070060* [Issue#22]: Add 'ObjectMapper.setAnnotationIntrospectors()' which allows
Tatu Saloranta15d6ea22012-08-03 18:29:23 -070061 defining different introspectors for serialization, deserialization
Tatu Saloranta7ccce012012-08-04 16:17:54 -070062* [Issue#24]: Allow serialization of Enums as JSON Objects
Tatu Saloranta15d6ea22012-08-03 18:29:23 -070063 (suggested by rveloso@github)
Tatu Saloranta7ccce012012-08-04 16:17:54 -070064* [Issue#28]: Add 'ObjectMapper.copy()', to create non-linked copy of
65 mapper, with same configuration settings
66* [Issue#29]: Allow serializing, deserializing POJOs as JSON Arrays
Tatu Saloranta6cada0a2012-07-31 22:24:03 -070067 by using `@JsonFormat(shape=Shape.ARRAY)`
Tatu Saloranta7ccce012012-08-04 16:17:54 -070068* [Issue#40]: Allow serialization of Collections as JSON Objects
Tatu Saloranta15d6ea22012-08-03 18:29:23 -070069 (and deserialization from)
Tatu Saloranta8d2cdd72012-08-13 23:10:51 -070070 (suggested by 'rveloso@github')
71* [Issue#42]: Allow specifying Base64 variant to use for Base64-encoded data
72 using ObjectReader.with(Base64Variant), ObjectWriter.with(Base64Variant).
73 (suggested by 'mpfau@github')
Tatu Saloranta023d8bd2012-08-13 22:17:28 -070074* [Issue#45]: Add '@JsonNaming' annotation to define per-class PropertyNamingStrategy
75 (suggested by Mark W)
Tatu Saloranta45267962012-08-28 10:10:43 -070076* [Pull#58]: Make 'MappingIterator' implement 'Closable'
77 (contributed by Pascal G)
Tatu Salorantaf412e852012-09-11 22:05:51 -070078* [Issue#72]: Add 'MapperFeature.USE_WRAPPER_NAME_AS_PROPERTY_NAME' to use
79 wrapper name annotations for renaming properties
Tatu Saloranta06a23ce2012-10-03 17:18:47 -070080* [Issue#87]: Add 'StdDelegatingSerializer', 'StdDelegatingDeserializer' to
81 simplify writing of two-step handlers
Tatu Saloranta88040e22012-08-24 13:33:00 -070082* (issue #4 of jackson-annotations): Add `@JsonIdentityReference(alwaysAsId=true)`
Tatu Saloranta6cada0a2012-07-31 22:24:03 -070083 to force ALL references to an object written as Object Id, even the first one.
Tatu Saloranta15d6ea22012-08-03 18:29:23 -070084* Added 'ObjectReader#withHandler' to allow for reconfiguring deserialization
85 problem handler
86 (suggested by 'electricmonk')
Tatu Saloranta6cada0a2012-07-31 22:24:03 -070087
Tatu Saloranta2b4086a2012-06-29 20:27:24 -070088Other changes:
89
90* New variant of AnnotationIntrospector.getFormat(), to support class
91 annotations
Tatu Saloranta134d3562012-07-05 21:38:46 -070092* It is now possible to serialize instances of plain old Object, iff
93 'FAIL_ON_EMPTY_BEANS' is disabled.
Tatu Saloranta9b847962012-09-11 15:16:41 -070094* Trying to remove reference to "JSON" in datatype conversion errors
95 (since databinding is format-agnostic)
Tatu Saloranta2b4086a2012-06-29 20:27:24 -070096
Tatu Salorantaa12061f2012-07-20 21:42:26 -070097INCOMPATIBILITIES: (rats!)
98
Tatu Saloranta7ccce012012-08-04 16:17:54 -070099* Note that [Issue#33] (see above) is, technically speaking, backwards
Tatu Salorantaa12061f2012-07-20 21:42:26 -0700100 imcompatible change. It is estimated that it should NOT affect most
101 users, as changes are to edge cases (and undocumented ones at that).
102 However, it can potentially cause problems with upgrade.
Tatu Saloranta45c7f242012-10-03 22:36:17 -0700103* Implementation of `JsonFormatVisitable` resulting in 2 new methods
104 being added in `BeanPropertyFilter` interface -- this is unfortunate,
105 but was required to support full traversability.
Tatu Salorantaa12061f2012-07-20 21:42:26 -0700106
Tatu Salorantac2776412012-05-14 19:40:57 -0700107------------------------------------------------------------------------
108=== History: ===
109------------------------------------------------------------------------
110
Tatu Salorantaa12061f2012-07-20 21:42:26 -07001112.0.4 (26-Jun-2012)
112
Tatu Saloranta7ccce012012-08-04 16:17:54 -0700113* [Issue#6]: element count for PrettyPrinter, endObject wrong
Tatu Salorantaa12061f2012-07-20 21:42:26 -0700114 (reported by "thebluemountain")
115* [JACKSON-838]: Utf8StreamParser._reportInvalidToken() skips letters
116 from reported token name
Tatu Saloranta023d8bd2012-08-13 22:17:28 -0700117 (reported by Lóránt Pintér)
Tatu Salorantaa12061f2012-07-20 21:42:26 -0700118* [JACKSON-841] Data is doubled in SegmentedStringWriter output
119 (reported by Scott S)
120* [JACKSON-842] ArrayIndexOutOfBoundsException when skipping C-style comments
121 (reported by Sebastien R)
122
1232.0.3: no version 2.0.3 released -- only used for extension modules
124
Tatu Salorantac2776412012-05-14 19:40:57 -07001252.0.2 [14-May-2012]
Tatu Saloranta23e267c2012-04-23 19:22:04 -0700126
127Fixes:
128
Tatu Saloranta7ccce012012-08-04 16:17:54 -0700129* [Issue#14]: Annotations were not included from parent classes of
Tatu Saloranta1b30b1a2012-04-28 00:43:34 -0700130 mix-in classes
131 (reported by @guillaup)
Tatu Salorantae16034e2012-04-30 22:51:36 -0700132* [JACKSON-824]: Combination of JSON Views, ObjectMapper.readerForUpdating()
133 was not working
134 (reported by Nir S)
Tatu Salorantab8f79ed2012-05-14 19:04:53 -0700135(and all fixes from 1.9.7)
Tatu Saloranta1b30b1a2012-04-28 00:43:34 -0700136
Tatu Salorantacfa2fc12012-04-27 19:31:28 -0700137Improvements:
138
Tatu Saloranta7ccce012012-08-04 16:17:54 -0700139* [Issue#11]: Improve ObjectMapper.convertValue()/.treeToValue() to use
Tatu Salorantacfa2fc12012-04-27 19:31:28 -0700140 cast if possible
141
Tatu Saloranta23e267c2012-04-23 19:22:04 -07001422.0.1 [23-Apr-2012]
Tatu Saloranta737ad052012-04-02 21:04:47 -0700143
144Fixes:
145
Tatu Salorantafc3db392012-04-23 18:49:08 -0700146* [JACKSON-827] Ensure core packages work on JDK 1.5
147 (reported by Pascal g)
Tatu Salorantaae4ea6e2012-04-19 19:47:53 -0700148* [JACKSON-829] Custom serializers not working for List<String> properties,
149 @JsonSerialize(contentUsing)
150 (reported by James R)
151
Tatu Saloranta737ad052012-04-02 21:04:47 -0700152Improvements:
153
Tatu Saloranta7ccce012012-08-04 16:17:54 -0700154* [Issue#5]: Add support for maps with java.util.Locale keys to the set of
Tatu Saloranta737ad052012-04-02 21:04:47 -0700155 StdKeyDeserializers
156 (contributed by Ryan G)
157
Tatu Salorantafc3db392012-04-23 18:49:08 -07001582.0.0 [25-Mar-2012]
Tatu Saloranta703bf4a2012-01-11 22:14:37 -0800159
160Fixes:
161
Tatu Saloranta337feca2012-03-19 19:11:21 -0700162* [JACKSON-368]: Problems with managed references, abstract types
Tatu3af61ff2012-01-19 15:58:41 -0800163* [JACKSON-711]: Delegating @JsonCreator did not work with Injectable values
Tatu Salorantae1ceccd2012-03-04 19:52:36 -0800164* [JACKSON-798]: Problem with external type id, creators
165 (reported by Casey L)
Tatu Salorantadeaee9c2012-03-25 12:01:34 -0700166(and all fixes up until and including 1.9.6)
Tatu9e6c28f2012-01-19 15:58:08 -0800167
Tatu Salorantae1ceccd2012-03-04 19:52:36 -0800168Improvements:
Tatu Saloranta703bf4a2012-01-11 22:14:37 -0800169
Tatu Saloranta28ff1a92012-01-17 17:54:51 -0800170* [JACKSON-546]: Indicate end-of-input with JsonMappingException instead
171 of EOFException, when there is no parsing exception
Tatu Salorantaee6e3d12012-01-17 17:28:39 -0800172* [JACKSON-664]: Reduce overhead of type resolution by adding caching
173 in TypeFactory
Tatu Saloranta7555fa22012-01-14 23:03:04 -0800174* [JACKSON-690]: Pass DeserializationContext through ValueInstantiator
Tatu418a2392012-01-12 21:52:07 -0800175* [JACKSON-695]: Add 'isEmpty(value)' in JsonSerializer to allow
176 customizing handling of serialization of empty values
Tatu Saloranta15fb6ff2012-01-14 10:31:35 -0800177* [JACKSON-710]: 'ObjectMapper.convertValue()' should ignore root value
178 wrapping/unwrapping settings
Tatu60668262012-01-19 14:21:12 -0800179* [JACKSON-730] Split various features (JsonParser, JsonGenerator,
180 SerializationConfig, DeserializationConfig) into per-factory
Tatu Saloranta048832d2012-03-09 21:48:40 -0800181 features (MapperFeature, JsonFactory.Feature) an per
Tatu60668262012-01-19 14:21:12 -0800182 instance features (existing ones)
Tatu Salorantaa03e0eb2012-01-14 14:01:39 -0800183* [JACKSON-732]: Allow 'AnnotationIntrospector.findContentDeserializer()'
184 (and similar) to return instance, not just Class<?> for instance
185 (requested by James R)
Tatu Saloranta4b02e9e2012-02-03 18:41:29 -0800186* [JACKSON-736]: Add (more) access to array, container and map serializers
Tatu Salorantac166fa32012-02-03 19:42:41 -0800187* [JACKSON-737]: Allow accessing of "creator properties" for BeanDeserializer
Tatucbbfbd32012-01-20 16:07:51 -0800188* [JACKSON-748]: Add 'registerSubtypes' to 'Module.setupContext' (and SimpleModule)
Tatu Saloranta703bf4a2012-01-11 22:14:37 -0800189* [JACKSON-749]: Make @JsonValue work for Enum deserialization
Tatub471a042012-01-27 11:51:39 -0800190* [JACKSON-769]: ObjectNode/ArrayNode: change 'put', 'insert', 'add' to return
191 'this node' (unless already returning something)
Tatu Salorantae5d77692012-01-29 11:20:26 -0800192* [JACKSON-770]: Simplify method naming for JsonNode, drop unnecessary 'get' prefix
193 from methods like 'getTextValue()' (becomes 'textValue()')
Tatu9610aff2012-02-02 11:30:08 -0800194* [JACKSON-777]: Rename 'SerializationConfig.Feature' as 'SerializationFeature',
Tatu Saloranta28808722012-02-24 18:35:50 -0800195 'DeserializationConfig.Feature' as 'DeserializationFeature'
Tatu Salorantadfc4c882012-02-11 13:54:27 -0800196* [JACKSON-780]: MissingNode, NullNode should return 'defaultValue' from 'asXxx' methods,
Tatu Saloranta28808722012-02-24 18:35:50 -0800197 (not 0 for numbers), as they are not numeric types
Tatu Saloranta3ae9c392012-05-18 16:45:47 -0700198* [JACKSON-787]: Allow use of @JsonIgnoreProperties for properties (fields, getters, setters)
Tatu Saloranta28808722012-02-24 18:35:50 -0800199* [JACKSON-795]: @JsonValue was not working for Maps, Collections
Tatu Salorantacf5d5472012-03-03 11:47:51 -0800200* [JACKSON-800]: Add 'Module.SetupContext#addDeserializationProblemHandler'
201 (suggested by James R)
Tatu Saloranta703bf4a2012-01-11 22:14:37 -0800202
203New features:
204
Tatu Salorantac99a7842012-02-22 18:09:00 -0800205* [JACKSON-107]: Add support for Object Identity (to handled cycles, shared refs),
Tatu Salorantadeaee9c2012-03-25 12:01:34 -0700206 with @JsonIdentityInfo
Tatu Saloranta26b2e1b2012-02-22 22:50:21 -0800207* [JACKSON-435]: Allow per-property Date formatting using @JsonFormat.
Tatu Saloranta89580482012-01-20 22:08:56 -0800208* [JACKSON-437]: Allow injecting of type id as POJO property, by setting
209 new '@JsonTypeInfo.visible' property to true.
Tatu Saloranta17ad21f2012-02-19 10:01:31 -0800210* [JACKSON-469]: Support "Builder pattern" for deserialiation; that is, allow
211 use of separate Builder object for data binding, creating actual value
Tatu Saloranta7324b9b2012-02-02 21:51:16 -0800212* [JACKSON-608]: Allow use of JSON Views for deserialization
Tatu Saloranta49117e02012-03-03 16:01:12 -0800213* [JACKSON-636]: Add 'SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS' to allow
214 forced sorting of Maps during serialization
215 (suggested by Joern H)
Tatu Saloranta2aa64842012-01-14 22:25:08 -0800216* [JACKSON-669]: Allow prefix/suffix for @JsonUnwrapped properties
217 (requested by Aner P)
Tatu Salorantaf0e232d2012-01-29 16:44:28 -0800218* [JACKSON-707]: Add 'JsonNode.deepCopy()', to create safe deep copies
219 of ObjectNodes, ArrayNodes.
Tatu Salorantaff8c08c2012-02-21 22:21:21 -0800220* [JACKSON-714]: Add general-purpose @JsonFormat annotation
Tatubc4153e2012-01-18 15:05:44 -0800221* [JACKSON-718]: Added 'JsonNode.canConvertToInt()', 'JsonNode.canConvertToLong()'
Tatu Saloranta048832d2012-03-09 21:48:40 -0800222* [JACKSON-747]: Allow changing of 'SerializationFeature' for ObjectWriter,
223 'DeserializationFeature' for ObjectReader.
Tatu Saloranta2aa64842012-01-14 22:25:08 -0800224* [JACKSON-752]: Add @JsonInclude (replacement of @JsonSerialize.include)
Tatu Salorantaf7c45bf2012-01-16 18:26:47 -0800225* [JACKSON-754]: Add @JacksonAnnotationsInside for creating "annotation
226 bundles" (also: AnnotationIntrospector.isAnnotationBundle())
Tatubbebf462012-02-03 17:44:31 -0800227* [JACKSON-762]: Allow using @JsonTypeId to specify property to use as
228 type id, instead of using separate type id resolver.
Tatu Salorantae1961742012-01-22 16:03:47 -0800229* [JACKSON-764]: Allow specifying "root name" to use for root wrapping
230 via ObjectReader, ObjectWriter.
Tatu Saloranta361c0a82012-02-24 18:16:29 -0800231* [JACKSON-772]: Add 'JsonNode.withArray()' to use for traversing Array nodes.
232* [JACKSON-793]: Add support for configurable Locale, TimeZone to use
233 (via SerializationConfig, DeserializationConfig)
Tatu Saloranta048832d2012-03-09 21:48:40 -0800234* [JACKSON-805]: Add 'SerializationFeature.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED'
235 to improve interoperability with BadgerFish/Jettison
Tatu Salorantaf293cc42012-03-24 21:10:18 -0700236* [JACKSON-810]: Deserialization Feature: Allow unknown Enum values via
237 'DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_AS_NULL'
238 (suggested by Raymond R)
Tatu Saloranta33a9a932012-03-21 18:12:14 -0700239* [JACKSON-813]: Add '@JsonSerializableSchema.id' attribute, to indicate
240 'id' value to add to generated JSON Schemas.
Tatu Saloranta2aa64842012-01-14 22:25:08 -0800241
Tatu Saloranta703bf4a2012-01-11 22:14:37 -0800242[entries for versions 1.x and earlier not retained; refer to earlier releases)