public class OutputValueRendererJSONString extends Object implements OutputValueRenderer
Constructor and Description |
---|
OutputValueRendererJSONString() |
Modifier and Type | Method and Description |
---|---|
static void |
enquote(String s,
StringBuilder sb)
JSON-Enquote the passed string.
|
void |
render(Object object,
StringBuilder buf)
Renders the value to the buffer.
|
public void render(Object object, StringBuilder buf)
OutputValueRenderer
render
in interface OutputValueRenderer
object
- to renderbuf
- buffer to populatepublic static void enquote(String s, StringBuilder sb)
s
- string to enqoutesb
- buffer to populate