java.lang.Object
org.wicketstuff.select2.json.Json

public class Json extends Object
Json utilities
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    writeFunction(com.github.openjson.JSONStringer stringer, String key, String value)
    Writes a key/value pair into the writer where value represents a javascript function and should be written out unencoded if the value is not null
    static void
    writeObject(com.github.openjson.JSONStringer stringer, String key, Object value)
    Writes a key/value pair into the writer if the value is not null

    Methods inherited from class java.lang.Object

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

    • writeObject

      public static void writeObject(com.github.openjson.JSONStringer stringer, String key, Object value) throws com.github.openjson.JSONException
      Writes a key/value pair into the writer if the value is not null
      Parameters:
      stringer - json writer
      key - key
      value - value
      Throws:
      com.github.openjson.JSONException
    • writeFunction

      public static void writeFunction(com.github.openjson.JSONStringer stringer, String key, String value) throws com.github.openjson.JSONException
      Writes a key/value pair into the writer where value represents a javascript function and should be written out unencoded if the value is not null
      Parameters:
      stringer - json writer
      key - key
      value - value
      Throws:
      com.github.openjson.JSONException