public class JsonFunctions
extends java.lang.Object
Constructor and Description |
---|
JsonFunctions() |
Modifier and Type | Method and Description |
---|---|
static Function<com.google.gson.JsonObject,byte[]> |
asBytes()
Get the UTF-8 bytes representation of the JSON for a JsonObject.
|
static Function<com.google.gson.JsonObject,java.lang.String> |
asString()
Get the JSON for a JsonObject.
|
static Function<byte[],com.google.gson.JsonObject> |
fromBytes()
Create a new JsonObject from the UTF8 bytes representation of JSON
|
static Function<java.lang.String,com.google.gson.JsonObject> |
fromString()
Create a new JsonObject from JSON
|
public static Function<com.google.gson.JsonObject,java.lang.String> asString()
public static Function<java.lang.String,com.google.gson.JsonObject> fromString()
public static Function<com.google.gson.JsonObject,byte[]> asBytes()
public static Function<byte[],com.google.gson.JsonObject> fromBytes()
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641