Example usage for Java com.google.gson JsonSerializationContext fields, constructors, methods, implement or subclass
The text is from its open source code.
JsonElement | serialize(Object src) Invokes default serialization on the specified object. |
JsonElement | serialize(Object src, Type typeOfSrc) Invokes default serialization on the specified object passing the specific type information. |