Skip navigation links
de.qfs.lib.json

Class JsonBuilder

    • Constructor Summary

      Constructors 
      Constructor and Description
      JsonBuilder() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static JsonValue toJsonValue(java.lang.Object object)
      Creates a JsonValue from a Java object.
      • Methods inherited from class java.lang.Object

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

      • JsonBuilder

        public JsonBuilder()
    • Method Detail

      • toJsonValue

        public static JsonValue toJsonValue(java.lang.Object object)
        Creates a JsonValue from a Java object. If the object implements JsonSerializable, its JsonSerializable.asJsonValue() method is called and the result returned.

        Converts null values to null literals and non-trivial objects to their string representation.

        Parameters:
        object - The object to convert to json
        Returns:
        The Java object as JsonValue