Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
org.bson |
Contains the base BSON classes.
|
org.bson.json |
JSON serialization and deserialization.
|
Modifier and Type | Method and Description |
---|---|
String |
BasicDBObject.toJson(JsonWriterSettings writerSettings)
Gets a JSON representation of this document
|
String |
BasicDBObject.toJson(JsonWriterSettings writerSettings,
Encoder<BasicDBObject> encoder)
Gets a JSON representation of this document
|
Modifier and Type | Method and Description |
---|---|
String |
BsonDocument.toJson(JsonWriterSettings settings)
Gets a JSON representation of this document using the given
JsonWriterSettings . |
String |
Document.toJson(JsonWriterSettings writerSettings)
Gets a JSON representation of this document
|
String |
RawBsonDocument.toJson(JsonWriterSettings settings) |
String |
Document.toJson(JsonWriterSettings writerSettings,
Encoder<Document> encoder)
Gets a JSON representation of this document
|
Modifier and Type | Method and Description |
---|---|
JsonWriterSettings |
JsonWriterSettings.Builder.build()
Build a JsonWriterSettings instance.
|
Constructor and Description |
---|
JsonWriter(Writer writer,
JsonWriterSettings settings)
Creates a new instance which uses
writer to write JSON to and uses the given settings. |
Copyright © 2017. All Rights Reserved.