Class Object

  • All Implemented Interfaces:
    JsonValue

    public final class Object
    extends java.lang.Object
    implements JsonValue
    A JsonValue object. A JSON object has a number of members, each one identified by a key and having a value (which may be Null or Nullable, but not null).

    Members are passed as Pairs of keys and values with keys being Strings and values being JsonValue.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void serialize​(JsonSink jsonSink)  
      • Methods inherited from class java.lang.Object

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

      • Object

        @SafeVarargs
        public Object​(org.dmfs.jems2.Pair<String,​JsonValue>... elements)
      • Object

        public Object​(java.lang.Iterable<org.dmfs.jems2.Pair<String,​JsonValue>> elements)
    • Method Detail

      • serialize

        public void serialize​(JsonSink jsonSink)
                       throws java.io.IOException
        Specified by:
        serialize in interface JsonValue
        Throws:
        java.io.IOException