Class GsonJsonator

  • All Implemented Interfaces:
    Jsonator<Gsonable>

    public class GsonJsonator
    extends Object
    implements Jsonator<Gsonable>
    A Jsonator implementation that uses Gson under the covers to serialize an object to JSON.
    • Constructor Detail

      • GsonJsonator

        public GsonJsonator()
    • Method Detail

      • convert

        public Json convert​(Gsonable object)
        Description copied from interface: Jsonator
        Creates a Json representation of a given object
        Specified by:
        convert in interface Jsonator<Gsonable>
        Parameters:
        object - the object to be serialized
        Returns:
        Json JSON representation of the given object