Package com.couchbase.client.java.json
Class JacksonTransformers
- java.lang.Object
-
- com.couchbase.client.java.json.JacksonTransformers
-
public class JacksonTransformers extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static com.couchbase.client.core.deps.com.fasterxml.jackson.databind.module.SimpleModule
JSON_VALUE_MODULE
static com.couchbase.client.core.deps.com.fasterxml.jackson.databind.ObjectMapper
MAPPER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonArray
bytesToJsonArray(byte[] input)
static JsonObject
bytesToJsonObject(byte[] input)
static JsonArray
stringToJsonArray(String input)
static JsonObject
stringToJsonObject(String input)
-
-
-
Method Detail
-
stringToJsonObject
public static JsonObject stringToJsonObject(String input) throws Exception
- Throws:
Exception
-
stringToJsonArray
public static JsonArray stringToJsonArray(String input) throws Exception
- Throws:
Exception
-
bytesToJsonArray
public static JsonArray bytesToJsonArray(byte[] input) throws Exception
- Throws:
Exception
-
bytesToJsonObject
public static JsonObject bytesToJsonObject(byte[] input) throws Exception
- Throws:
Exception
-
-