Package org.apache.avro.data
Class Json
java.lang.Object
org.apache.avro.data.Json
Utilities for reading and writing arbitrary Json data in Avro format.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
DatumReader
for arbitrary Json data using the object model described inJsonProperties
.static class
DatumWriter
for arbitrary Json data using the object model described inJsonProperties
. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
Parses a JSON string and converts it to the object model described inJsonProperties
.static String
Converts an instance of the object model described inJsonProperties
to a JSON string.
-
Field Details
-
SCHEMA
The schema for Json data.
-
-
Method Details
-
parseJson
Parses a JSON string and converts it to the object model described inJsonProperties
. -
toString
Converts an instance of the object model described inJsonProperties
to a JSON string.
-