Package org.apache.felix.utils.json
Class JSONWriter
java.lang.Object
org.apache.felix.utils.json.JSONWriter
Simple JSON writer to be used on top of a
Writer
.-
Field Details
-
pw
-
comma
private boolean comma
-
-
Constructor Details
-
JSONWriter
-
-
Method Details
-
object
- Throws:
IOException
-
endObject
- Throws:
IOException
-
array
- Throws:
IOException
-
endArray
- Throws:
IOException
-
key
- Throws:
IOException
-
value
- Throws:
IOException
-
value
- Throws:
IOException
-
value
- Throws:
IOException
-
value
- Throws:
IOException
-
value
- Throws:
IOException
-
quote
Quote the provided value and escape some characters.- Parameters:
value
- The value to quote- Throws:
IOException
-
flush
- Throws:
IOException
- when the underlying writer throws an exception.- See Also:
-