public class Json extends CharMarshall
JsonSerializer and JsonParser into a single class with convenience read/write methods.
The general idea is to combine a single serializer and parser inside a simplified API for reading and writing POJOs.
| Modifier and Type | Field and Description |
|---|---|
static Json |
DEFAULT
Default reusable instance.
|
| Constructor and Description |
|---|
Json()
Constructor.
|
Json(JsonSerializer s,
JsonParser p)
Constructor.
|
public Json(JsonSerializer s, JsonParser p)
s - The serializer to use for serializing output.
p - The parser to use for parsing input.
public Json()
Uses JsonSerializer.DEFAULT and JsonParser.DEFAULT.
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.