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
inder123
31ea72a29f
Merge pull request #670 from adamtanner/release
...
Change references to Google Code to Github in pom.xml.
2015-07-20 23:01:33 -07:00
Adam Tanner
2b67815808
Change references to Google Code to Github.
2015-07-20 14:31:39 -07:00
Jesse Wilson
8e570ee3a2
Merge pull request #667 from adamtanner/json-writer-opaque-value
...
JsonWriter#value supports opaque JSON values.
2015-07-20 11:21:23 -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
Jesse Wilson
bb34247cc4
Merge pull request #664 from ferstl/issue-613
...
Add a JSR-305 @ThreadSafe annotation to the Gson class
2015-07-13 13:47:37 -04: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
inder123
fcfd397d6f
Merge pull request #659 from google/jw/gitignore
...
Add gitignore for Maven, Eclipse, IDEA, and OSX files.
2015-06-18 07:55:15 -07:00
Jake Wharton
e914de082b
Add gitignore for Maven, Eclipse, IDEA, and OSX files.
2015-06-18 10:32:15 -04:00
Jesse Wilson
23288eb363
Merge pull request #658 from google/jw/travis
...
Add Travis CI build.
2015-06-17 22:48:27 -04:00
Jake Wharton
cd38056e1f
Add Travis CI build.
2015-06-17 22:20:00 -04:00
Jesse Wilson
e8e8b557d2
Merge pull request #657 from google/jw/no-io
...
There is no I/O writing to a StringWriter.
2015-06-17 22:15:34 -04:00
Jake Wharton
032847976c
There is no I/O writing to a StringWriter.
2015-06-17 22:01:17 -04:00
Inderjeet Singh
2cac11b449
added license
2015-04-13 10:03:52 -07:00
Jesse Wilson
25d07cc54a
Merge pull request #634 from google-gson/fix-readme
...
Correct 'user guide' and 'design document' Markdown links.
2015-04-13 12:40:22 -04:00
Jake Wharton
93f81c53c9
Correct 'user guide' and 'design document' Markdown links.
2015-04-13 12:22:11 -04:00
Inderjeet Singh
fad12f85d4
fixed group link
2015-03-19 13:37:44 -07:00
Inderjeet Singh
1fb33e427a
fixed links
2015-03-19 13:37:10 -07:00
Inderjeet Singh
62b9428fbd
Create README.md
2015-03-19 13:33:05 -07:00
Inderjeet Singh
fdaa6b05c4
ensuring that the type field is written by runtime type adapter
2014-12-10 22:57:08 +00:00
Inderjeet Singh
7d96ce8d6d
fixed tests to take care of stackTrace element appearing sometimes
2014-12-10 22:43:44 +00:00
Inderjeet Singh
0c3b9670f0
Ensuring that UTC date adapter serializes nulls correctly
2014-12-05 22:12:54 +00:00
Inderjeet Singh
f0f9ce42f4
using only Jackson iso8601 implementation for UTC date adapter
2014-12-05 08:28:25 +00:00
Inderjeet Singh
0e3708be82
updated UTC type adapter to support JDK 1.6 using Jackson ISO8601 parsing util
2014-12-05 07:41:08 +00:00
Inderjeet Singh
255f2e2847
added a sample Date type adapter for UTC
2014-12-05 00:16:24 +00:00
Inderjeet Singh
1d9e86e27c
fixed extras build
2014-12-04 22:07:13 +00:00
Inderjeet Singh
33e74101e5
javadocs for 2.3.1
2014-11-20 10:17:53 +00:00
Inderjeet Singh
c3d17e39f1
[maven-release-plugin] prepare for next development iteration
2014-11-20 09:09:32 +00:00
Inderjeet Singh
eba6825a38
[maven-release-plugin] prepare release gson-2.3.1
2014-11-20 09:08:22 +00:00
Inderjeet Singh
8d5a41329e
added tests for Throwable. Revised ReflectiveTypeAdapterFactory to ignore self-referencing fields.
2014-11-16 22:55:18 +00:00
Inderjeet Singh
b6a625fb6c
fixed issue 469 by adding a TypeAdapterFactory for throwables that ignores cause if it is self-referencing
2014-11-16 22:25:23 +00:00
Inderjeet Singh
1de2ace065
removed eclipse warnings. updated maven plugins to the latest versions
2014-11-16 20:45:01 +00:00
Inderjeet Singh
84e3442eb0
Fixed issue 582
2014-11-12 23:35:36 +00:00
Inderjeet Singh
60b2370c74
added a test for RuntimeTypeAdapterFactory using JsonAdapter annotation
2014-11-11 22:04:20 +00:00
Inderjeet Singh
e652ec0dd9
revised a test to validate that we can query a delegate adapter from typeadapterfactorie registered in JsonAdapter
2014-11-11 02:02:56 +00:00
Jesse Wilson
d6c8c1e3cf
Fix bugs in getPath() with arrays of objects and arrays of arrays
2014-11-11 01:59:48 +00:00
Inderjeet Singh
f2591b6664
adjusted factory finding code to take into account non-present factories
2014-11-10 23:15:31 +00:00
Jake Wharton
7f8f490fdc
Re-order factories to allow @JsonAdapter on enums which are user-defined types.
2014-11-04 00:59:42 +00:00
Jesse Wilson
6580921f9d
Use a version range that works with Maven 3.0.4.
...
Fixes issue 588.
2014-09-16 14:40:54 +00:00
Jesse Wilson
ea17ccc651
Restore missing fails.
2014-08-12 21:06:56 +00:00
Inderjeet Singh
c6eced6d87
javadocs for 2.3
2014-08-12 00:01:30 +00:00
Inderjeet Singh
85e2d1901c
[maven-release-plugin] prepare for next development iteration
2014-08-11 23:35:34 +00:00
Inderjeet Singh
cf894f3d58
[maven-release-plugin] prepare release gson-2.3
2014-08-11 23:35:29 +00:00
Inderjeet Singh
192e32d430
updated maven pom for Java8
2014-08-11 23:33:42 +00:00
Jake Wharton
c5dc3b791b
Correct JsonElement javadoc exception references.
2014-08-09 06:14:12 +00:00
Jake Wharton
f4185289f6
Correct TypeAdapterFactory reference in its Javadoc.
2014-08-09 05:35:33 +00:00
Jake Wharton
f1f838cf20
Favor post-Gingerbread instantiation mechanism.
...
pre-Gingerbread is now a small subset of the Android OS distribution and is constantly shrinking toward zero.
2014-08-09 05:32:50 +00:00
Jesse Wilson
6a3e83a741
Javadoc for TypeAdapterFactory in @JsonAdapter.
2014-08-05 15:00:15 +00:00
Jake Wharton
117d8ea68f
Add TypeAdapterFactory support to @JsonAdapter.
2014-08-04 16:58:41 +00:00