public class Json extends Object
| Modifier and Type | Method and 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 |
public static void writeObject(com.github.openjson.JSONStringer stringer,
String key,
Object value)
throws com.github.openjson.JSONException
writer if the value is not nullstringer - json writerkey - keyvalue - valuecom.github.openjson.JSONExceptionpublic static void writeFunction(com.github.openjson.JSONStringer stringer,
String key,
String value)
throws com.github.openjson.JSONException
writer where value represents a javascript
function and should be written out unencoded if the value is not nullstringer - json writerkey - keyvalue - valuecom.github.openjson.JSONExceptionCopyright © 2020. All rights reserved.