public class JsonEncoder extends Object
| Modifier and Type | Method and Description |
|---|---|
static elemental.json.JsonValue |
encode(Object value,
Type type,
ApplicationConnection connection)
Encode a value to a JSON representation for transport from the client to
the server.
|
public static elemental.json.JsonValue encode(Object value, Type type, ApplicationConnection connection)
value - value to converttype - type information, not needed for all encoding tasks, such as
encoding a Stringconnection - application connection providing the context, not needed for
all encoding tasks, such as encoding a StringCopyright © 2021 Vaadin Ltd. All rights reserved.