Code example for JsonSerializationContext

Methods: serialize

0
	 * @see JsonSerializer#serialize(Object, Type, JsonSerializationContext) 
	 */ 
	public JsonElement serialize(org.redpin.base.core.Measurement src,
			Type typeOfSrc, JsonSerializationContext context) {
 
		return context.serialize(src, Measurement.class);
	} 
 
	/** 
	 * @see JsonDeserializer#deserialize(JsonElement, Type, 
	 *      JsonDeserializationContext) 
	 */ 
	public Measurement deserialize(JsonElement json, Type typeOfT,
			JsonDeserializationContext context) throws JsonParseException {
 
		return context.deserialize(json, Measurement.class);
	} 
 
} 
Experience pair programming with AI  Get Codota for Java