@Retention(value=RUNTIME) @Target(value={TYPE,FIELD,METHOD}) public @interface JSONRaw
@FromJSON
public static Clazz methodname(Object json)
this method is used to convert from JSON to the annotated class.
Otherwise the annotated class must have a public constructor taking a single argument of type Object.
Vice versa, if the annotated class Clazz has a method annotated @ToJSON declared as
@ToJSON
public Object methodname()
this method is used to convert an object to JSON.
Otherwise an object obj is converted to a string by obj.toString().
public abstract Class<?> value
Copyright © 2014–2015 Tomas Teubner. All rights reserved.