Interface JSONValueWriter
- All Known Implementing Classes:
DefaultJSONValueWriter
@NonNullByDefault
public interface JSONValueWriter
A handler used to write out JSON-encoded values.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeBoolean
(boolean value) Write aboolean
value, as per RFC7951, section 6.3.void
Write anempty
value, as per RFC7951, section 6.9.void
writeNumber
(Number value) Write a numeric value, as per RFC7951, section 6.1.void
writeString
(String value) Write a string value, as per RFC7951, section 6.2 and other types which have are represented as JSON strings.
-
Method Details
-
writeBoolean
Write aboolean
value, as per RFC7951, section 6.3.- Parameters:
value
- Value to write- Throws:
IOException
- when an IO error occurs
-
writeEmpty
Write anempty
value, as per RFC7951, section 6.9.- Throws:
IOException
- when an IO error occurs
-
writeNumber
Write a numeric value, as per RFC7951, section 6.1.- Parameters:
value
- Value to write- Throws:
IOException
- when an IO error occurs
-
writeString
Write a string value, as per RFC7951, section 6.2 and other types which have are represented as JSON strings.- Parameters:
value
- Value to write- Throws:
IOException
- when an IO error occurs
-