All Versions
41
Latest Version
Avg Release Cycle
133 days
Latest Release
-

Changelog History
Page 4

  • v1.6 Changes

    2010-11-24 (Targeted: Oct, 2010)

    • New stream parser APIs
    • New parser that improves parsing performance significantly
  • v1.5 Changes

    2010-08-19 (Target Date: Aug 18, 2010)

    • Added UPPER_CAMEL_CASE_WITH_SPACES naming policy
    • Added SQL date and time support
    • A number of performance improvements: Using caching of field annotations for speeding up reflection, replacing recursive calls in the parser with a for loop.
  • v1.4 Changes

    2009_10_09

    • JsonStreamParser: A streaming parser API class to deserialize multiple JSON objects on a stream (such as a pipelined HTTP response)
    • Raised the deserialization limit for byte and object arrays and collection to over 11MB from 80KB. See issue 96.
    • While serializing, Gson now uses the actual type of a field. This allows serialization of base-class references holding sub-classes to the JSON for the sub-class. It also allows serialization of raw collections. See Issue 155, 156.
    • Added a Gson.toJsonTree() method that serializes a Java object to a tree of JsonElements. See issue 110.
    • Added a Gson.fromJson(JsonElement) method that deserializes from a Json parse tree.
    • Updated Expose annotation to contain parameters serialize and deserialize to control whether a field gets serialized or deserialized. See issue 146.
    • Added a new naming policy LOWER_CASE_WITH_DASHES
    • Default date type adapter is now thread-safe. See Issue 162.
    • JsonElement.toString() now outputs valid JSON after escaping characters properly. See issue 154.
    • JsonPrimitive.equals() now returns true for two numbers if their values are equal. All integral types (long, int, short, byte, BigDecimal, Long, Integer, Short, Byte) are treated equivalent for comparison. Similarly, floating point types (double, float, BigDecimal, Double, Float) are treated equivalent as well. See issue 147.
    • Fixed bugs in pretty printing. See issue 153.
    • If a field causes circular reference error, Gson lists the field name instead of the object value. See issue 118.
    • Gson now serializes a list with null elements correctly. See issue 117.
    • Fixed issue 121, 123, 126.
    • Support user defined exclusion strategies (Feature Request 138).
  • v1.3 Changes

    2009_01 (Target Date Friday, Dec 15, 2008)

    • Made JSON parser lenient by allowing unquoted member names while parsing. See Issue 41
    • Better precision handling for floating points. See Issue 71, 72
    • Support for deserialization of special double values: NaN, infinity and negative infinity. See Issue 81
    • Backward compatibility issue found with serialization of Collection<Object> type. See Issue 73 and 83.
    • Able to serialize null keys and/or values within a Map. See Issue 77
    • Deserializing non-String value keys for Maps. See Issue 85.

    • Support for clashing field name. See Issue 76.

    • Removed the need to invoke instance creator if a deserializer is registered. See issues 37 and 69.

    • Added default support for java.util.UUID. See Issue 79

    • Changed Gson.toJson() methods to use Appendable instead of Writer. Issue 52. This requires that clients recompile their source code that uses Gson.

  • v1.2.3 Changes

    2008-11-15 (Target Date Friday, Oct 31, 2008)

    • Added support to serialize raw maps. See issue 45
    • Made Gson thread-safe by fixing Issue 63
    • Fixed Issue 68 to allow default type adapters for primitive types to be replaced by custom type adapters.
    • Relaxed the JSON parser to accept escaped slash (\/) as a valid character in the string. See Issue 66
  • v1.2.2 Changes

    2008-10-14 (Target Date: None, Unplanned)

    • This version was released to fix Issue 58 which caused a regression bug in version 1.2.1. It includes the contents from the release 1.2.1
  • v1.2.1 Changes

    2008-10-13 (Target Date Friday, Oct 7, 2008)

    Note: This release was abandoned since it caused a regression (Issue 58) bug.

    • Includes updated parser for JSON that supports much larger strings. For example, Gson 1.2 failed at parsing a 100k string, Gson 1.2.1 has successfully parsed strings of size 15-20MB. The parser also is faster and consumes less memory since it uses a token match instead of a recursion-based Grammar production match. See Issue 47.
    • Gson now supports field names with single quotes ' in addition to double quotes ". See Issue 55.
    • Includes bug fixes for issue 46, 49, 51, 53, 54, and 56.
  • v1.2 Changes

    2008-08-29 (Target Date Tuesday Aug 26, 2008)

    • Includes support for feature requests 21, 24, 29
    • Includes bug fixes for Issue 22, Issue 23, Issue 25, Issue 26, Issue 32 , Issue 34, Issue 35, Issue 36, Issue 37, Issue 38, Issue 39
    • Performance enhancements (see r137)
    • Documentation updates
  • v1.1.1 Changes

    2008-07-18 (Target Date Friday, Aug 1, 2008)

    • Includes fixes for Issue 19, Partial fix for Issue 20
  • v1.1 Changes

    2008-07-01 (Target Date Thursday, July 3, 2008)

    • Includes fixes for Issue 9, Issue 16, Issue 18