private String buildJsonData(String username, String message) {
        JsonObject jasonObject = Json.createObjectBuilder().add("message", username + ": " + message).build();
        StringWriter stringwriter = new StringWriter();
        try (JsonWriter jsonwriter = Json.createWriter(stringwriter)) {
            jsonwriter.write(jasonObject);
            // Make entries in database for messages
        } catch (Throwable t) {
            t.printStackTrace();
        }
        System.out.println("Json String : " + stringwriter.toString());
        return stringwriter.toString();
    }