| Package | Description |
|---|---|
| com.mongodb |
The core mongodb package
|
| com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
| org.bson |
Contains the base BSON classes.
|
| org.bson.json |
JSON serialization and deserialization.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
BasicDBObject.toJson(JsonWriterSettings writerSettings)
Gets a JSON representation of this document
|
java.lang.String |
BasicDBObject.toJson(JsonWriterSettings writerSettings,
Encoder<BasicDBObject> encoder)
Gets a JSON representation of this document
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
ByteBufBsonDocument.toJson(JsonWriterSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
BsonDocument.toJson(JsonWriterSettings settings)
Gets a JSON representation of this document using the given
JsonWriterSettings. |
java.lang.String |
RawBsonDocument.toJson(JsonWriterSettings settings) |
java.lang.String |
Document.toJson(JsonWriterSettings writerSettings)
Gets a JSON representation of this document
|
java.lang.String |
Document.toJson(JsonWriterSettings writerSettings,
Encoder<Document> encoder)
Gets a JSON representation of this document
|
| Modifier and Type | Field and Description |
|---|---|
private JsonWriterSettings |
JsonWriter.settings |
| Constructor and Description |
|---|
JsonWriter(java.io.Writer writer,
JsonWriterSettings settings)
Creates a new instance which uses
writer to write JSON to and uses the given settings. |