All Versions
41
Latest Version
Avg Release Cycle
133 days
Latest Release
-
Changelog History
Page 1
Changelog History
Page 1
-
v2.9.1 Changes
- ๐ Make
Object
andJsonElement
deserialization iterative rather than recursive (#1912) - โ Added parsing support for enum that has overridden toString() method (#1950)
- โ Removed support for building Gson with Gradle (#2081)
- โ Removed obsolete
codegen
hierarchy (#2099) - โ Add support for reflection access filter (#1905)
- ๐ Improve
TypeToken
creation validation (#2072) - โ Add explicit support for
float
inJsonWriter
(#2130, #2132) - ๐ Fail when parsing invalid local date (#2134)
Also many small improvements to javadoc.
- ๐ Make
-
v2.9.0 Changes
๐ The minimum supported Java version changes from 6 to 7.
- ๐ Change target Java version to 7 (#2043)
- ๐ Put
module-info.class
into Multi-Release JAR folder (#2013) - ๐ Improve error message when abstract class cannot be constructed (#1814)
- ๐ Support EnumMap deserialization (#2071)
- โ Add LazilyParsedNumber default adapter (#2060)
- ๐ Fix JsonReader.hasNext() returning true at end of document (#2061)
- โ Remove Gradle build support. Build script was outdated and not actively maintained anymore (#2063)
- โ Add
GsonBuilder.disableJdkUnsafe()
(#1904) - Add
UPPER_CASE_WITH_UNDERSCORES
in FieldNamingPolicy (#2024) - ๐ Fix failing to serialize Collection or Map with inaccessible constructor (#1902)
- ๐ Improve TreeTypeAdapter thread-safety (#1976)
- ๐ Fix
Gson.newJsonWriter
ignoring lenient and HTML-safe setting (#1989) - โ Delete unused LinkedHashTreeMap (#1992)
- 0๏ธโฃ Make default adapters stricter; improve exception messages (#2000)
- ๐ Fix
FieldNamingPolicy.upperCaseFirstLetter
uppercasing non-letter (#2004)
-
v2.8.9 Changes
- ๐ Make OSGi bundle's dependency on
sun.misc
optional (#1993). - ๐ Deprecate
Gson.excluder()
exposing internalExcluder
class (#1986). - Prevent Java deserialization of internal classes (#1991).
- ๐ Improve number strategy implementation (#1987).
- ๐ Fix LongSerializationPolicy null handling being inconsistent with Gson (#1990).
- ๐ Support arbitrary Number implementation for Object and Number deserialization (#1290).
- โฌ๏ธ Bump proguard-maven-plugin from 2.4.0 to 2.5.1 (#1980).
- Don't exclude static local classes (#1969).
- ๐ Fix
RuntimeTypeAdapterFactory
depending on internalStreams
class (#1959). - ๐ Improve Maven build (#1964).
- ๐ Make dependency on
java.sql
optional (#1707).
- ๐ Make OSGi bundle's dependency on
-
v2.8.8 Changes
- ๐ Fixed issue with recursive types (#1390).
- ๐ Better behaviour with Java 9+ and
Unsafe
if there is a security manager (#1712). - ๐
EnumTypeAdapter
now works better when ProGuard has obfuscated enum fields (#1495).
-
v2.8.7 Changes
- ๐ Fixed
ISO8601UtilsTest
failing on systems with UTC+X. - ๐ Improved javadoc for
JsonStreamParser
. - โก๏ธ Updated proguard.cfg (#1693).
- ๐ Fixed
IllegalStateException
inJsonTreeWriter
(#1592). - โ Added
JsonArray.isEmpty()
(#1640). - โ Added new test cases (#1638).
- ๐ Fixed OSGi metadata generation to work on JavaSE < 9 (#1603).
- ๐ Fixed
-
v2.8.6 Changes
October 04, 20192019-10-04 GitHub Diff
- Added static nethods
JsonParser.parseString
andJsonParser.parseReader
and deprecated instance methodJsonParser.parse
- Java 9 module-info support
- Added static nethods
-
v2.8.5 Changes
May 22, 20182018-05-21 GitHub Diff
- Print Gson version while throwing AssertionError and IllegalArgumentException
- Moved
utils.VersionUtils
class tointernal.JavaVersion
. This is a potential backward incompatible change from 2.8.4 - Fixed issue https://github.com/google/gson/issues/1310 by supporting Debian Java 9
-
v2.8.4 Changes
May 01, 20182018-05-01 GitHub Diff
- Added a new FieldNamingPolicy,
LOWER_CASE_WITH_DOTS
that mapps JSON namesomeFieldName
tosome.field.name
- Fixed issue https://github.com/google/gson/issues/1305 by removing compile/runtime dependency on
sun.misc.Unsafe
- Added a new FieldNamingPolicy,
-
v2.8.3 Changes
April 27, 20182018-04-27 GitHub Diff
- Added a new API,
GsonBuilder.newBuilder()
that clones the current builder - Preserving DateFormatter behavior on JDK 9
- Numerous other bugfixes
- Added a new API,
-
v2.8.2 Changes
September 20, 20172017-09-19 GitHub Diff
- Introduced a new API,
JsonElement.deepCopy()
- Numerous other bugfixes
- Introduced a new API,