gson-comments/gson/src/main/java/com/google/gson
Jesse Wilson ff7aa3f331 Escape only the required characters when emitting JSON. This means that instead of emitting
["foo\nbar", "baz"]

we'll emit this:

  ["foo
bar", baz"]

This simple change measured about ~35% faster for in-memory writes!
2010-08-28 07:29:22 +00:00
..
annotations Revised equals and hashcode of ObjectTypePair to ensure reference equality of object instead of value equality. Improved JavaDocs for various 1.4 API methods. 2009-10-05 18:17:52 +00:00
reflect Removed all the JDK warnings about unused fields in test classes or unused constructors for use by Gson or instanceof calls on parameterized types. 2009-09-23 17:45:16 +00:00
stream Escape only the required characters when emitting JSON. This means that instead of emitting 2010-08-28 07:29:22 +00:00
AnonymousAndLocalClassExclusionStrategy.java Don't exclude enum constants, even if they are anonymous. 2010-08-27 07:26:35 +00:00
Cache.java Add new Cache interface and LRU Cache implementation to cache field annotations per "Class" (rather than per instance). This results in a significant speed-up (approx. 3X) when serializing/deserializing the same classes over and over again. 2010-01-10 00:32:21 +00:00
CamelCaseSeparatorNamingPolicy.java Add support to allow spaces in the JSON field name. 2010-05-26 17:40:19 +00:00
CircularReferenceException.java Deprecate the FieldNamingStrategy interface and replace it with FieldNamingStrategy2. This is the first step to help make it easy to cache field annotations across all instances of a class, etc. 2010-01-09 22:43:27 +00:00
CompositionFieldNamingPolicy.java Deprecate the FieldNamingStrategy interface and replace it with FieldNamingStrategy2. This is the first step to help make it easy to cache field annotations across all instances of a class, etc. 2010-01-09 22:43:27 +00:00
DefaultTypeAdapters.java replaced unchecked suppressed warnings token with more specific rawtypes. 2010-08-20 16:27:46 +00:00
DelegatingJsonElementVisitor.java Fixed issue 52 by switching Gson.toJson methods to use Appendable instead of java.io.Writer 2008-11-26 19:13:14 +00:00
DisjunctionExclusionStrategy.java Refactored exclusion strategies so that they can easily be exposed as part of the public API. 2009-10-07 09:23:14 +00:00
Escaper.java Re-enabling the ' (apostrophe) escaping with valid JSON escaping. 2009-10-07 03:48:29 +00:00
ExclusionStrategy.java Updated JavaDoc formatting 2009-10-09 15:26:34 +00:00
ExposeAnnotationDeserializationExclusionStrategy.java Refactored exclusion strategies so that they can easily be exposed as part of the public API. 2009-10-07 09:23:14 +00:00
ExposeAnnotationSerializationExclusionStrategy.java Refactored exclusion strategies so that they can easily be exposed as part of the public API. 2009-10-07 09:23:14 +00:00
FieldAttributes.java Allow cache size to be configured. 2010-05-19 20:47:27 +00:00
FieldNamingPolicy.java Add support to allow spaces in the JSON field name. 2010-05-26 17:40:19 +00:00
FieldNamingStrategy.java Made FieldNamingStrategy2 is package protected class. 2010-08-19 00:10:42 +00:00
FieldNamingStrategy2.java removed @since for non-public classes 2010-08-20 00:35:48 +00:00
FieldNamingStrategy2Adapter.java replaced unchecked suppressed warnings token with more specific rawtypes. 2010-08-20 16:27:46 +00:00
GenericArrayTypeImpl.java moved gson as a project under trunk 2008-09-01 03:13:32 +00:00
Gson.java Use JsonReader internally rather than JsonParserJavacc. 2010-08-27 05:59:18 +00:00
GsonBuilder.java removed @since for non-public classes 2010-08-20 00:35:48 +00:00
InnerClassExclusionStrategy.java Refactored exclusion strategies so that they can easily be exposed as part of the public API. 2009-10-07 09:23:14 +00:00
InstanceCreator.java Made author tags consistent across the public api. 2009-04-01 17:03:31 +00:00
JavaFieldNamingPolicy.java Made FieldNamingStrategy2 is package protected class. 2010-08-19 00:10:42 +00:00
JsonArray.java Adding restrictions on the JsonElements to disallow Java "null"s. 2009-10-08 22:03:08 +00:00
JsonArrayDeserializationVisitor.java Deprecate the FieldNamingStrategy interface and replace it with FieldNamingStrategy2. This is the first step to help make it easy to cache field annotations across all instances of a class, etc. 2010-01-09 22:43:27 +00:00
JsonCompactFormatter.java Fix for Issue 178. 2010-08-21 06:50:52 +00:00
JsonDeserializationContext.java Made author tags consistent across the public api. 2009-04-01 17:03:31 +00:00
JsonDeserializationContextDefault.java implemented support for deserialization to deserialize to more specific type if an instance creator returns a sub-class. 2009-10-09 18:16:16 +00:00
JsonDeserializationVisitor.java exposed final fields of Pair for fast access. Pair is used quite a bit during serialization because of its use in ref stack. 2009-12-03 20:58:22 +00:00
JsonDeserializer.java moved gson as a project under trunk 2008-09-01 03:13:32 +00:00
JsonDeserializerExceptionWrapper.java fixed issue 46 by adding toString() methods to Gson, serializers, deserializers, and instanceCreators, and default type adapters. 2008-09-16 18:28:31 +00:00
JsonElement.java Ensure that the JsonElement.toString() will always generate valid JSON (even when control characters/whitespace characters are used). 2009-09-23 18:28:03 +00:00
JsonElementVisitor.java Fixed issue 52 by switching Gson.toJson methods to use Appendable instead of java.io.Writer 2008-11-26 19:13:14 +00:00
JsonFieldNameValidator.java Add support to allow spaces in the JSON field name. 2010-05-26 17:40:19 +00:00
JsonFormatter.java Fixed issue 52 by switching Gson.toJson methods to use Appendable instead of java.io.Writer 2008-11-26 19:13:14 +00:00
JsonNull.java Ensure that the JsonElement.toString() will always generate valid JSON (even when control characters/whitespace characters are used). 2009-09-23 18:28:03 +00:00
JsonObject.java Remove the constraint that map keys mustn't be the empty string. 2010-08-28 05:02:33 +00:00
JsonObjectDeserializationVisitor.java Deprecate the FieldNamingStrategy interface and replace it with FieldNamingStrategy2. This is the first step to help make it easy to cache field annotations across all instances of a class, etc. 2010-01-09 22:43:27 +00:00
JsonParseException.java Made author tags consistent across the public api. 2009-04-01 17:03:31 +00:00
JsonParser.java Use JsonReader internally rather than JsonParserJavacc. 2010-08-27 05:59:18 +00:00
JsonParserJavacc.java Update Parser to add members to an JsonObject within a loop rather than a recursive call. 2010-05-19 20:44:27 +00:00
JsonParserJavaccConstants.java Update Parser to add members to an JsonObject within a loop rather than a recursive call. 2010-05-19 20:44:27 +00:00
JsonParserJavaccTokenManager.java Made FieldNamingStrategy2 is package protected class. 2010-08-19 00:10:42 +00:00
JsonPrimitive.java Use JsonReader internally rather than JsonParserJavacc. 2010-08-27 05:59:18 +00:00
JsonPrintFormatter.java Fix for Issue 178. 2010-08-21 06:50:52 +00:00
JsonSerializationContext.java Made author tags consistent across the public api. 2009-04-01 17:03:31 +00:00
JsonSerializationContextDefault.java Implemented some code review comments from r482 2009-10-09 01:35:45 +00:00
JsonSerializationVisitor.java replaced unchecked suppressed warnings token with more specific rawtypes. 2010-08-20 16:27:46 +00:00
JsonSerializer.java moved gson as a project under trunk 2008-09-01 03:13:32 +00:00
JsonStreamParser.java Use JsonReader internally rather than JsonParserJavacc. 2010-08-27 05:59:18 +00:00
JsonTreeNavigator.java Code review changes from r476 2009-10-08 23:23:52 +00:00
LongSerializationPolicy.java Update GsonBuilder API to accept an enum for the serialize Long as string. This will be useful if/when we implement support to serialize a long type as an array of integers. 2009-01-11 06:11:29 +00:00
LowerCamelCaseSeparatorNamingPolicy.java Made FieldNamingStrategy2 is package protected class. 2010-08-19 00:10:42 +00:00
LowerCaseNamingPolicy.java Made FieldNamingStrategy2 is package protected class. 2010-08-19 00:10:42 +00:00
LruCache.java Made FieldNamingStrategy2 is package protected class. 2010-08-19 00:10:42 +00:00
MappedObjectConstructor.java Updated log statements to be localizable. 2010-06-15 20:40:12 +00:00
MemoryRefStack.java exposed final fields of Pair for fast access. Pair is used quite a bit during serialization because of its use in ref stack. 2009-12-03 20:58:22 +00:00
ModifierBasedExclusionStrategy.java Refactored exclusion strategies so that they can easily be exposed as part of the public API. 2009-10-07 09:23:14 +00:00
ModifyFirstLetterNamingPolicy.java Made FieldNamingStrategy2 is package protected class. 2010-08-19 00:10:42 +00:00
NullExclusionStrategy.java Refactored exclusion strategies so that they can easily be exposed as part of the public API. 2009-10-07 09:23:14 +00:00
ObjectConstructor.java moved gson as a project under trunk 2008-09-01 03:13:32 +00:00
ObjectNavigator.java Add new Cache interface and LRU Cache implementation to cache field annotations per "Class" (rather than per instance). This results in a significant speed-up (approx. 3X) when serializing/deserializing the same classes over and over again. 2010-01-10 00:32:21 +00:00
ObjectNavigatorFactory.java Deprecate the FieldNamingStrategy interface and replace it with FieldNamingStrategy2. This is the first step to help make it easy to cache field annotations across all instances of a class, etc. 2010-01-09 22:43:27 +00:00
ObjectTypePair.java exposed final fields of Pair for fast access. Pair is used quite a bit during serialization because of its use in ref stack. 2009-12-03 20:58:22 +00:00
package-info.java moved gson as a project under trunk 2008-09-01 03:13:32 +00:00
Pair.java Added checks to ensure that typeHierarchyAdapter being registered doesn't hide a previously existing one. 2010-06-24 21:51:18 +00:00
ParameterizedTypeHandlerMap.java replaced unchecked suppressed warnings token with more specific rawtypes. 2010-08-20 16:27:46 +00:00
ParameterizedTypeImpl.java moved gson as a project under trunk 2008-09-01 03:13:32 +00:00
ParseException.java Updated Grammar for matching JsonArray to be left-associative rather than right-associative. Gson can now parse arrays of size over 11MB instead of 80KB which was the prior limit. Thanks for the tip, kenotron. 2009-08-22 01:03:27 +00:00
Preconditions.java Fixed issue 68 by providing support to override default type adapters for 2008-10-31 00:19:58 +00:00
Primitives.java moved gson as a project under trunk 2008-09-01 03:13:32 +00:00
RecursiveFieldNamingPolicy.java Deprecate the FieldNamingStrategy interface and replace it with FieldNamingStrategy2. This is the first step to help make it easy to cache field annotations across all instances of a class, etc. 2010-01-09 22:43:27 +00:00
SerializedNameAnnotationInterceptingNamingPolicy.java Update JavaDoc to link to the correct interface (FieldNamingStrategy2). 2010-01-09 22:48:53 +00:00
SimpleCharStream.java Updated Grammar for matching JsonArray to be left-associative rather than right-associative. Gson can now parse arrays of size over 11MB instead of 80KB which was the prior limit. Thanks for the tip, kenotron. 2009-08-22 01:03:27 +00:00
StringUnmarshaller.java Fixed issue 66 to allow escaped slash ( \/) as a valid Json escaped character. 2008-10-29 23:31:13 +00:00
SyntheticFieldExclusionStrategy.java Refactored exclusion strategies so that they can easily be exposed as part of the public API. 2009-10-07 09:23:14 +00:00
Token.java Updated Grammar for matching JsonArray to be left-associative rather than right-associative. Gson can now parse arrays of size over 11MB instead of 80KB which was the prior limit. Thanks for the tip, kenotron. 2009-08-22 01:03:27 +00:00
TokenMgrError.java Updated Grammar for matching JsonArray to be left-associative rather than right-associative. Gson can now parse arrays of size over 11MB instead of 80KB which was the prior limit. Thanks for the tip, kenotron. 2009-08-22 01:03:27 +00:00
TypeAdapter.java moved gson as a project under trunk 2008-09-01 03:13:32 +00:00
TypeInfo.java Major restructuring of Primitve type serialization and deserializtion. From the end-user's point of view there should be no difference other than the user can now override the default serialization/deserialization their own custom type adapter (not sure if there is a real use-case out there for this). 2008-11-15 02:26:57 +00:00
TypeInfoArray.java updated Gson version number to 1.2.1 2008-10-13 22:09:15 +00:00
TypeInfoCollection.java Added a custom type adapter for Collection class. We will migrate the code to use it instead of special cases for collections all over. This type adapter is called at a few places already. 2008-11-13 23:40:10 +00:00
TypeInfoFactory.java Removed all the JDK warnings about unused fields in test classes or unused constructors for use by Gson or instanceof calls on parameterized types. 2009-09-23 17:45:16 +00:00
TypeInfoMap.java Removed all the JDK warnings about unused fields in test classes or unused constructors for use by Gson or instanceof calls on parameterized types. 2009-09-23 17:45:16 +00:00
TypeUtils.java Removed all the JDK warnings about unused fields in test classes or unused constructors for use by Gson or instanceof calls on parameterized types. 2009-09-23 17:45:16 +00:00
UpperCamelCaseSeparatorNamingPolicy.java Made FieldNamingStrategy2 is package protected class. 2010-08-19 00:10:42 +00:00
UpperCaseNamingPolicy.java Made FieldNamingStrategy2 is package protected class. 2010-08-19 00:10:42 +00:00
VersionConstants.java moved gson as a project under trunk 2008-09-01 03:13:32 +00:00
VersionExclusionStrategy.java Refactored exclusion strategies so that they can easily be exposed as part of the public API. 2009-10-07 09:23:14 +00:00