We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.client.communication.
Class JsonEncoder
- java.lang.Object
-
- com.vaadin.client.communication.JsonEncoder
-
public class JsonEncoder extends Object
Encoder for converting RPC parameters and other values to JSON for transfer between the client and the server. Currently, basic data types as well as Map, String[] and Object[] are supported, where maps and Object[] can contain other supported data types. TODO extensible type support
Since:
7.0
-
-
Constructor Summary
Constructors Constructor and Description JsonEncoder()
-
Method Summary
All Methods Modifier and Type Method and Description static JsonValue
encode(Object value, Type type, ApplicationConnection connection)
Encode a value to a JSON representation for transport from the client to the server.
-
-
-
Method Detail
-
encode
public static JsonValue encode(Object value, Type type, ApplicationConnection connection)
Encode a value to a JSON representation for transport from the client to the server.
Parameters:
value
- value to convertconnection
-Returns:
JSON representation of the value
-
-