Package 

Object JsonSerializer

    • Method Summary

      Modifier and Type Method Description
      final JsonElement toJsonElement(Object item) Converts arbitrary object to the JsonElement with the best effort.
      final Map<String, JsonElement> safeMapValuesToJson(Map<String, Object> $self, InternalLogger internalLogger) This method will convert all values to JSON in a safe way, meaning if serialization fails for the particular value, the process will continue and faulty value will be dropped.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toJsonElement

         final JsonElement toJsonElement(Object item)

        Converts arbitrary object to the JsonElement with the best effort. Any.toString is used as a fallback.

      • safeMapValuesToJson

         final Map<String, JsonElement> safeMapValuesToJson(Map<String, Object> $self, InternalLogger internalLogger)

        This method will convert all values to JSON in a safe way, meaning if serialization fails for the particular value, the process will continue and faulty value will be dropped.