write
Write the specified Boolean to the underlying document writer as a JSON boolean.
Parameters
A Boolean value.
Throws
If an I/O exception occurs.
If an arbitrary value cannot be written.
Write the specified BigDecimal to the underlying document writer as a JSON number.
Parameters
A BigDecimal value.
Throws
If an I/O exception occurs.
If an arbitrary value cannot be written.
Write the specified BigInteger to the underlying document writer as a JSON number.
Parameters
A BigInteger value.
Throws
If an I/O exception occurs.
If an arbitrary value cannot be written.
Write the specified Int to the underlying document writer as a JSON number.
Parameters
A Int value.
Throws
If an I/O exception occurs.
If an arbitrary value cannot be written.
Write the specified Long to the underlying document writer as a JSON number.
Parameters
A Long value.
Throws
If an I/O exception occurs.
If an arbitrary value cannot be written.
Write the specified Float to the underlying document writer as a JSON number.
Parameters
A Float value.
Throws
If an I/O exception occurs.
If an arbitrary value cannot be written.
Write the specified Double to the underlying document writer as a JSON number. Use JSON 5 extensions (and an additional NaN extension).
NOTE: The number is only written to 10^-6 precision.
Parameters
A Double value.
Throws
If an I/O exception occurs.
If an arbitrary value cannot be written.
Write the specified String to the underlying document writer as a JSON string. All non-ASCII characters are encoded as Unicode escape sequences, so only ASCII characters will be written.
Parameters
A String (may be null).
Throws
If an I/O exception occurs.
If an arbitrary value cannot be written.
Write the contents of the specified JSONWriter to the underlying document as a JSON value. This is only permitted whenever an arbitrary JSON value would be permitted.
Parameters
Another JSONWriter.
Write the specified JSON-friendly value to the underlying document writer.
Parameters
A JSONFriendly value.
Throws
If an I/O exception occurs.
If an arbitrary value cannot be written.