public class JsonSerializer extends Object
The following rules apply.
Modifier and Type | Field and Description |
---|---|
static Pattern |
JSONP_CALLBACK_PATTERN |
Constructor and Description |
---|
JsonSerializer(Writer pWriter)
Create a JsonSerializer with the given Writer.
|
public static final Pattern JSONP_CALLBACK_PATTERN
public JsonSerializer(Writer pWriter)
pWriter
- The writer to be used as a character streampublic void write(Object pObject) throws IOException
pObject
- The object to be serializedIOException
- Any exception thrown by the underlying writer.Copyright © 2015, Oracle and/or its affiliates. All rights reserved.