class JsonSerialization extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
JsonSerialization.Transformer |
| Modifier and Type | Field and Description |
|---|---|
static org.bson.json.JsonWriterSettings |
COMPACT_JSON_SETTINGS
Common settings for writing JSON strings using a compact JSON format
|
private static String |
ID_FIELD_NAME |
private static org.bson.json.JsonWriterSettings |
SIMPLE_JSON_SETTINGS
Common settings for writing JSON strings using a compact JSON format
|
private JsonSerialization.Transformer |
transformer |
| Constructor and Description |
|---|
JsonSerialization() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDocumentId(org.bson.Document document) |
String |
getDocumentValue(org.bson.Document document) |
JsonSerialization.Transformer |
getTransformer() |
private static final String ID_FIELD_NAME
public static final org.bson.json.JsonWriterSettings COMPACT_JSON_SETTINGS
private static final org.bson.json.JsonWriterSettings SIMPLE_JSON_SETTINGS
private final JsonSerialization.Transformer transformer
public String getDocumentId(org.bson.Document document)
public String getDocumentValue(org.bson.Document document)
public JsonSerialization.Transformer getTransformer()
Copyright © 2021 JBoss by Red Hat. All rights reserved.