org.wicketstuff.select2.json
Class Json

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

public class Json
extends Object

Json utilities


Method Summary
static void writeFunction(org.apache.wicket.ajax.json.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(org.apache.wicket.ajax.json.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 Detail

writeObject

public static void writeObject(org.apache.wicket.ajax.json.JSONStringer stringer,
                               String key,
                               Object value)
                        throws org.apache.wicket.ajax.json.JSONException
Writes a key/value pair into the writer if the value is not null

Parameters:
stringer - json writer
key - key
value - value
Throws:
org.apache.wicket.ajax.json.JSONException

writeFunction

public static void writeFunction(org.apache.wicket.ajax.json.JSONStringer stringer,
                                 String key,
                                 String value)
                          throws org.apache.wicket.ajax.json.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:
org.apache.wicket.ajax.json.JSONException


Copyright © 2018. All rights reserved.