public class VPackParser extends Object
| Constructor and Description |
|---|
VPackParser() |
| Modifier and Type | Method and Description |
|---|---|
VPackSlice |
fromJson(String json) |
VPackSlice |
fromJson(String json,
boolean includeNullValues) |
VPackParser |
registerDeserializer(String attribute,
ValueType type,
VPackJsonDeserializer deserializer) |
VPackParser |
registerDeserializer(ValueType type,
VPackJsonDeserializer deserializer) |
<T> VPackParser |
registerSerializer(Class<T> type,
VPackJsonSerializer<T> serializer) |
<T> VPackParser |
registerSerializer(String attribute,
Class<T> type,
VPackJsonSerializer<T> serializer) |
String |
toJson(VPackSlice vpack) |
String |
toJson(VPackSlice vpack,
boolean includeNullValues) |
public String toJson(VPackSlice vpack) throws VPackException
VPackExceptionpublic String toJson(VPackSlice vpack, boolean includeNullValues) throws VPackException
VPackExceptionpublic VPackParser registerDeserializer(String attribute, ValueType type, VPackJsonDeserializer deserializer)
public VPackParser registerDeserializer(ValueType type, VPackJsonDeserializer deserializer)
public <T> VPackParser registerSerializer(String attribute, Class<T> type, VPackJsonSerializer<T> serializer)
public <T> VPackParser registerSerializer(Class<T> type, VPackJsonSerializer<T> serializer)
public VPackSlice fromJson(String json) throws VPackException
VPackExceptionpublic VPackSlice fromJson(String json, boolean includeNullValues) throws VPackException
VPackExceptionCopyright © 2016 ArangoDB GmbH. All rights reserved.