@InterfaceStability.Experimental @InterfaceAudience.Public public class JsonFunctions extends Object
Modifier and Type | Method and Description |
---|---|
static Expression |
decodeJson(Expression expression)
The returned Expression unmarshals the expression representing a JSON-encoded string
into a N1QL value.
|
static Expression |
decodeJson(JsonObject json)
The returned Expression unmarshals the JSON constant
into a N1QL value.
|
static Expression |
decodeJson(String jsonString)
The returned Expression unmarshals the JSON-encoded string
into a N1QL value.
|
static Expression |
encodedSize(Expression expression)
Returned expression results in the number of bytes in an uncompressed JSON encoding of the value.
|
static Expression |
encodedSize(String expression)
Returned expression results in the number of bytes in an uncompressed JSON encoding of the value.
|
static Expression |
encodeJson(Expression expression)
Returned expression marshals the N1QL value into a JSON-encoded string.
|
static Expression |
encodeJson(String expression)
Returned expression marshals the N1QL value into a JSON-encoded string.
|
static Expression |
polyLength(Expression expression)
Returned expression results in length of the value after evaluating the expression.
|
static Expression |
polyLength(String expression)
Returned expression results in length of the value after evaluating the expression.
|
public static Expression decodeJson(Expression expression)
public static Expression decodeJson(JsonObject json)
public static Expression decodeJson(String jsonString)
public static Expression encodeJson(Expression expression)
public static Expression encodeJson(String expression)
public static Expression encodedSize(Expression expression)
public static Expression encodedSize(String expression)
public static Expression polyLength(Expression expression)
public static Expression polyLength(String expression)
Copyright © 2015 Couchbase, Inc.