public class JsonDecoder extends Object
| Constructor and Description |
|---|
JsonDecoder() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
decodeValue(Type type,
elemental.json.JsonValue jsonValue,
Object target,
ApplicationConnection connection)
Decode a JSON array with two elements (type and value) into a client-side
type, recursively if necessary.
|
static <T extends elemental.json.JsonValue> |
obj2jso(Object object)
Called by generated deserialization code to treat a generic object as a
JsonValue.
|
public static Object decodeValue(Type type, elemental.json.JsonValue jsonValue, Object target, ApplicationConnection connection)
jsonValue - JSON value with encoded dataconnection - reference to the current ApplicationConnectionpublic static <T extends elemental.json.JsonValue> T obj2jso(Object object)
Copyright © 2023 Vaadin Ltd. All rights reserved.