public class JsonUtils extends Object
Constructor and Description |
---|
JsonUtils() |
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.JsonNode |
deserialize(String value) |
static com.fasterxml.jackson.databind.ObjectMapper |
newObjectMapper() |
static String |
serialize(Object document) |
static org.bson.Document |
toDocument(Object document) |
static com.fasterxml.jackson.databind.JsonNode |
toJsonNode(Object document) |
public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper()
public static com.fasterxml.jackson.databind.JsonNode deserialize(String value)
value
- public static org.bson.Document toDocument(Object document)
document
- public static com.fasterxml.jackson.databind.JsonNode toJsonNode(Object document)
document
- Copyright © 2016. All rights reserved.