public class Json extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Json.ObjectReader
DatumReader for arbitrary Json data using the object model described
in JsonProperties . |
static class |
Json.ObjectWriter
DatumWriter for arbitrary Json data using the object model described
in JsonProperties . |
Modifier and Type | Field and Description |
---|---|
static Schema |
SCHEMA
The schema for Json data.
|
Modifier and Type | Method and Description |
---|---|
static Object |
parseJson(String s)
Parses a JSON string and converts it to the object model described in
JsonProperties . |
static String |
toString(Object datum)
Converts an instance of the object model described in
JsonProperties to a JSON string. |
public static final Schema SCHEMA
public static Object parseJson(String s)
JsonProperties
.public static String toString(Object datum)
JsonProperties
to a JSON string.Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.