List of usage examples for com.google.gwt.json.client JSONValue toString
@Override public abstract String toString();
From source file:org.vaadin.alump.offlinebuilder.client.offline.OfflineStorage.java
License:Open Source License
public static void setStateJson(String pid, JSONValue json) { set(pid, STATE_KEY, json != null ? json.toString() : null); }
From source file:rocket.remoting.client.support.rpc.JsonRpcServiceInvoker.java
License:Apache License
@Override String getRequestData() {//from w ww . j a v a 2s . c o m final JsonSerializer serializer = this.createSerializer(); final JSONValue json = serializer.writeJson(this.getParameter()); return json.toString(); }
From source file:rpc.client.data.JSONSerializer.java
License:Open Source License
@Override public String serialize(Object object) throws SerializerException { if (!Utils.isSerializationCapable(object)) { throw new SerializerException(SerializerException.Error.NOT_SERIALIZABLE); }// www . java 2 s . c om JSONValue jsonValue = toJSONValue(object); if (jsonValue == null) { throw new SerializerException(SerializerException.Error.NOT_SERIALIZABLE); } return jsonValue.toString(); }
From source file:virtuozo.infra.HttpMethod.java
License:Apache License
public HttpMethod json(JSONValue data) { defaultContentType(MediaType.JSON);//from ww w .j a v a 2 s. c om this.builder.setRequestData(data.toString()); return this; }