Class JSONWriter.ObjectBuilder

java.lang.Object
com.codename1.io.JSONWriter.ObjectBuilder
Enclosing class:
JSONWriter

public static final class JSONWriter.ObjectBuilder extends java.lang.Object
Fluent builder for { "k": v, ... }. Implements toJson() to emit the encoded string and exposes the backing Map via toMap() for callers that need to embed the builder into a larger structure.
  • Method Summary

    Modifier and Type
    Method
    Description
    put(String key, java.lang.Object value)
     
     
    Map<String, java.lang.Object>
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details