java.lang.Object
org.wicketstuff.select2.json.Json
Json utilities
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidwriteFunction(com.github.openjson.JSONStringer stringer, String key, String value) Writes a key/value pair into thewriterwherevaluerepresents a javascript function and should be written out unencoded if the value is notnullstatic voidwriteObject(com.github.openjson.JSONStringer stringer, String key, Object value) Writes a key/value pair into thewriterif the value is notnull
-
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 thewriterif the value is notnull- Parameters:
stringer- json writerkey- keyvalue- 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 thewriterwherevaluerepresents a javascript function and should be written out unencoded if the value is notnull- Parameters:
stringer- json writerkey- keyvalue- value- Throws:
com.github.openjson.JSONException
-