net.arnx.jsonic
Annotation Type JSONHint


@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface JSONHint

The JSONHint annotation gives the hint for conversion.


Optional Element Summary
 String anonym
          The default key name for using when converting simple type to struct type.
 String format
          The format of Number or Date
 boolean ignore
          Ignore this property
 String name
          The property name
 int ordinal
          The sort ordinal of property key
 boolean serialized
          Set the flag that this property is already serialized.
 Class<?> type
          The Java type for creation
 

name

public abstract String name
The property name

Default:
""

format

public abstract String format
The format of Number or Date

Default:
""

type

public abstract Class<?> type
The Java type for creation

Default:
java.lang.Object.class

ignore

public abstract boolean ignore
Ignore this property

Default:
false

serialized

public abstract boolean serialized
Set the flag that this property is already serialized.

Default:
false

anonym

public abstract String anonym
The default key name for using when converting simple type to struct type.

Default:
""

ordinal

public abstract int ordinal
The sort ordinal of property key

Default:
-1