Interface JsonEventObject
- All Known Implementing Classes:
JsonEventObjectBase
All JSON underlying event objects implement this interface.
In general, byte code does not use the Map methods and instead uses the implementation class fields directly.
This is a read-only implementation of the Map interface.
All predefined properties as well as all dynamic properties become available through the Map interface.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
Returns the JSON string usingWriterConfig.MINIMAL
.toString
(WriterConfig config) Returns the JSON string given a writer configurationvoid
writeTo
(Writer writer, WriterConfig config) Write JSON to the provided writer and using the provided configuration.Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
writeTo
Write JSON to the provided writer and using the provided configuration.- Parameters:
writer
- writerconfig
- JSON writer settings- Throws:
IOException
- when an IO exception occurs
-
toString
Returns the JSON string given a writer configuration- Parameters:
config
- JSON writer settings- Returns:
- JSON
-
toString
String toString()Returns the JSON string usingWriterConfig.MINIMAL
.
-