cfboom.gson

Interface JsonSerializer

cfboom.gson.JsonSerializer
All Known Implementing Classes:
DefaultTypeAdapter , TypeAdapter

Interface representing a serializer for Json.

Class Attributes:
  • author : Joel Tobey
  •  
    Method Summary
    any serialize(any src, [string typeOfSrc])
         Gson invokes this call-back method during serialization when.

    Method Detail

    serialize

    public any serialize(any src, [string typeOfSrc])

    Gson invokes this call-back method during serialization when it encounters a field of the specified type.

    Parameters:
    src - the object that needs to be converted to Json.
    typeOfSrc - the actual type of the source object.
    Returns:
    a JsonElement corresponding to the specified object.