List of usage examples for org.openqa.selenium.json JsonInput read
public <T> T read(Type type)
From source file:org.openqa.grid.web.servlet.HubStatusServletTest.java
License:Apache License
private Map<String, Object> invokeCommand(String method, Map<String, Object> params) throws IOException, ServletException { FakeHttpServletResponse fakeResponse = sendCommand(method, "/", params); Json json = new Json(); JsonInput jin = json.newInput(new StringReader(fakeResponse.getBody())); return jin.read(Json.MAP_TYPE); }