Inderjeet Singh
c731abb293
Fixed a regression in Gson 2.6 where Gson caused NPE if the TypeAdapterFactory.create() returned null.
2016-02-25 13:56:42 -08:00
Dongjoon Hyun
aa209fa255
Fix some typos in gson comments.
2016-02-15 14:11:23 -08:00
inder123
8383f5c7fa
Merge pull request #769 from paniko0/master
...
timezones without minutes should be valid according RFC3339
2016-02-02 20:23:52 -08:00
Jake Wharton
c8627c8ab8
Update reader and writer for RFC 7159.
2016-01-18 15:07:33 -05:00
inder123
2ab776b5f5
Merge pull request #771 from google/jw/global-leniency
...
Add setting for leniency on Gson instance.
2016-01-18 14:03:23 -05:00
Jake Wharton
3360c93a76
Add setting for leniency on Gson instance.
...
Add a JsonReader factory (for parity with the JsonWriter one) which provides a configured instance using the Gson settings.
2016-01-18 12:08:11 -05:00
Jerzy Chalupski
23e2916947
Make TypeAdapters created by @JsonAdapter null-safe
2016-01-18 16:41:07 +01:00
Psidium
61f58baaf9
fix typo in JsonArray docs
2016-01-12 11:02:42 -02:00
Danillo Souza
ed6298c98a
timezones without minutes should are valid according RFC3339
2016-01-11 15:33:55 -02:00
inder123
1f803bd37d
Merge pull request #761 from google/jw/nuke-synthetics
...
Remove synthetic accessors from being generated.
2015-12-27 14:08:23 -05:00
Jake Wharton
7a1c94f986
Remove synthetic accessors from being generated.
2015-12-27 01:39:19 -05:00
Gorik
d86dfdec7c
Removed unused code in ISO8601Utils
2015-11-23 01:21:41 -05:00
Gorik
bcd52a1fdc
Added ISO8601 complete support for date deserialization
2015-11-23 01:11:41 -05:00
inder123
e48c780389
Merge pull request #733 from google/java_util_additional_classes
...
Supported Currency and added additional tests for Vector, Stack and Properties.
2015-11-17 17:57:59 -08:00
Inderjeet Singh
c935f89b23
Added the cause to Assertions
2015-11-16 09:16:23 -08:00
Inderjeet Singh
05b17f9271
Adding details in the throw exception on a missing field.
2015-11-16 09:12:23 -08:00
Inderjeet Singh
47cc34548d
added currency class
2015-11-06 15:41:15 -08:00
Inderjeet Singh
11b26b5256
Added support for AtomicLongArray.
...
Also added tests to ensure LongSerializationPolicy is honored.
2015-11-05 14:15:46 -08:00
Inderjeet Singh
caef762530
added factory fields for consistency
2015-11-05 14:03:51 -08:00
Inderjeet Singh
cc54e4dbdd
made methods static
2015-11-05 10:46:54 -08:00
Inderjeet Singh
7821b73202
Added support for AtomicInteger, AtomicBoolean, AtomicLong and AtomicIntegerArray.
2015-11-05 10:45:23 -08:00
Inderjeet Singh
fef43b2aaa
Added support to serialize/deserialize ConcurrentMap and ConcurrentNavigableMap.
2015-11-04 21:25:15 -08:00
Inderjeet Singh
e5b3f6368d
updated minimum JDK version to 1.6.
...
Added Overrides for methods implementing an interface.
2015-11-04 18:52:20 -08:00
inder123
fe101c10bc
Merge pull request #719 from google/jwilson_1021_runtime_type_mismatch
...
Fix type hierarchy adapters to do a runtime check.
2015-10-22 09:29:01 -07:00
jwilson
7d1973e6c5
Fix type hierarchy adapters to do a runtime check.
...
Otherwise if we have a type hierarchy adapter for Vehicle, and we
attempt to decode a JSON string as a Car, we get the right exception
if the JSON string is actually decoded as a Truck.
2015-10-21 11:42:30 -04:00
Roman Mazur
3b1671dde9
Fix javadoc of SerializedName
...
In #699 the approach was changed but docs were left for the first implementation.
2015-10-04 19:56:02 +03:00
Inderjeet Singh
109915d93a
Implemented support for multiple values for SerializedName annotation.
2015-10-03 02:01:30 -07:00
Jesse Wilson
3361030766
Merge pull request #705 from google/627
...
Implemented equals and hashcode for LazilyParsedNumber to fix
2015-09-27 17:25:04 -04:00
Inderjeet Singh
96b2ada79a
incorporated code review feedback: optimized LazilyParsedNumber.equals/hashcode() by utilizing the fact that value is never passed as null.
2015-09-27 13:58:01 -07:00
dushyant
2ecce94494
typo
2015-09-27 16:01:27 +05:30
Inderjeet Singh
1e9004403c
Fixed javadoc for JsonWriter as reported in
...
https://github.com/google/gson/issues/623
2015-09-26 18:10:00 -07:00
Inderjeet Singh
3aec173243
small reformatting
2015-09-26 18:02:12 -07:00
Inderjeet Singh
3daf585931
Implemented equals and hashcode for LazilyParsedNumber to fix
...
https://github.com/google/gson/issues/627
2015-09-26 17:58:13 -07:00
Jake Wharton
e81f3eba27
Expose newJsonWriter wrapper instead of just options.
...
This is more future proof to ensure that consumers holding on to TypeAdapters for efficiency can always encode JSON in the same way as if the Gson instance was used directly.
2015-09-26 19:19:38 -04:00
Jake Wharton
31f80d8659
Merge pull request #700 from google/jwilson_0907_serializenulls_accessor
...
Expose serializeNulls with an accessor.
2015-09-07 22:44:05 -04:00
jwilson
ff2c8f8e8b
Expose serializeNulls with an accessor.
...
Useful for frameworks that build on Gson.
2015-09-07 22:31:43 -04:00
Dorvaryn
618343fd1b
Clarify the fact that the behaviour of getDelegateAdapter depends on registration order.
2015-09-03 18:15:24 +01:00
Jesse Wilson
87717662f7
Merge pull request #689 from vbauer/util-classes
...
Add unit tests for constructors from util classes
2015-08-14 20:42:31 -04:00
Vladislav Bauer
eb79ec73f0
Add unit tests for constructors from util classes
2015-08-15 05:29:46 +06:00
Michael Evans
64d74db8ae
Add METHOD target for use with AutoValue's abstract property methods
2015-08-14 14:08:56 -04:00
Inderjeet Singh
0c4ae01836
Updated Gson Javadoc to indicate thread-safety.
2015-08-10 19:34:07 +05:30
inder123
2ee680a645
Revert "Add a JSR-305 @ThreadSafe annotation to the Gson class"
2015-08-10 19:31:18 +05:30
inder123
0a93efada5
Merge pull request #652 from schlan/fix_turkish_locale_issues
...
Fix issues if runing in an environment with a Turkish locale
2015-08-08 09:10:48 -07:00
Dillon Dixon
d8c12a727f
Fixed accidental duplication of null elements
2015-07-23 21:18:01 -07:00
Dillon Dixon
6960ebc776
Updated JsonArray to support adding primitives directly via an overloaded "add(...)" method rather than having to always do "add(new JsonPrimitive(...))"
2015-07-23 20:44:04 -07:00
Adam Tanner
f7abd59a3b
JsonWriter#jsonValue writes raw JSON values.
...
Add a jsonValue(String value) method that takes a raw JSON string that
can be used to write the string directly to the underlying writer
without modification.
The intended use case for this is when building JSON that contains a
pre-serialized JSON string as a value in an object or array.
2015-07-20 10:56:56 -07:00
Stefan Ferstl
82edd57205
Add a JSR-305 @ThreadSafe annotation to the Gson class
...
- Add an optional dependency to com.google.code.findbugs:jsr305.
The optional scope is used in order to avoid introducing a new
transitive dependency to the jsr305 library. This is fine because the
@ThreadSafe annotation has only a documentary purpose and it is not
retained at runtime.
- Annotate the Gson class as @ThreadSafe
Fixes Issue #613
2015-07-13 18:34:38 +02:00
Jake Wharton
032847976c
There is no I/O writing to a StringWriter.
2015-06-17 22:01:17 -04:00
Sebastian Chlan
6e57df7e96
FieldNamingPolicy: Use Locale.ENGLISH to be locale insensitive
2015-06-09 15:25:16 +01:00
Inderjeet Singh
8d5a41329e
added tests for Throwable. Revised ReflectiveTypeAdapterFactory to ignore self-referencing fields.
2014-11-16 22:55:18 +00:00