List of usage examples for com.google.gwt.query.client.js JsUtils parseJSON
public static Properties parseJSON(String json)
From source file:com.github.jdramaix.client.ConverterApp.java
License:Apache License
private void onreadystatechange(XMLHttpRequest xhr) { if (xhr.getReadyState() == 4) { Properties json = JsUtils.parseJSON(xhr.getResponseText()); if (xhr.getStatus() == 200) { displayAnswer(json.getStr("result")); console.log("Logs form server: \n" + json.getStr("logs")); } else {//from ww w .ja v a 2 s . c om Window.alert("Ooops something went wrong... Please try again!"); console.log(json.getStr("result")); } uploadUrl = json.getStr("nextUrl"); } }