These are chat archives for hseeberger/akka-http-json

Jul 2017
Jul 12 2017 12:49

This is my JSON -
"app_site": "eventsubscribers",
"app_branch": "master",
"app_dbhash": false,
"app_env": "production",
"app_rev": "",
"app_tar": "eventsubscribers-master-"
"app_site": "subscribers",
"app_branch": "master",
"app_dbhash": false,
"app_env": "production",
"app_rev": "",
"app_tar": "subscribers-master-"
This is my controller -
public class statusController {
public status getAllstatus() throws IOException, IllegalAccessException, Throwable, Exception{

    byte[] jsonData=Files.readAllBytes(Paths.get("C:/Users/patrag/workspace/com.json2rest/ver.json"));
    ObjectMapper objectMapper = new ObjectMapper();
    status stat1 = objectMapper.readValue(jsonData, status.class);

    return stat1;


Now I want both the app_sites followed by their respective app_tar in the browser. How should I proceed ?