Class JsonEncoder

    • Field Detail

      • GSON

        private static final com.google.gson.Gson GSON
        The Gson object.
    • Constructor Detail

      • JsonEncoder

        public JsonEncoder()
    • Method Detail

      • encode

        public String encode​(Object object,
                             Object... args)
        The encode method is used to encode objects in JSON format.
        Specified by:
        encode in interface IEncoder<Object>
        Parameters:
        object - the objects to encode
        args - the arguments
        Returns:
        the JSON string