Code example for JsonSerializationContext

Methods: serialize

0
	 * @see JsonSerializer#serialize(Object, Type, JsonSerializationContext) 
	 */ 
 
	public JsonElement serialize(org.redpin.base.core.Fingerprint src,
			Type typeOfSrc, JsonSerializationContext context) {
		return context.serialize(src, Fingerprint.class);
	} 
 
	/** 
	 * @see JsonDeserializer#deserialize(JsonElement, Type, 
	 *      JsonDeserializationContext) 
	 */ 
 
	public Fingerprint deserialize(JsonElement json, Type typeOfT,
			JsonDeserializationContext context) throws JsonParseException {
		return context.deserialize(json, Fingerprint.class);
	} 
 
}