Package | Description |
---|---|
com.mongodb |
This package is the main entry point to the MongoDB Java Driver, and it contains the classes for the existing API from 2.x versions.
|
org.bson |
This package contains bson classes required for the driver
|
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
|
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 © 2016. All Rights Reserved.