public static String getRATJsonSettings(String ratJson) throws JsonParseException, JsonMappingException, IOException { ObjectMapper mapper = new ObjectMapper(); RATJsonObject jsonHeader = (RATJsonObject) mapper.readValue(ratJson, RATJsonObject.class); String output = mapper.writeValueAsString(jsonHeader.getSettings()); return output; }
public static String getSettings(RATJsonObject ratJson) throws JsonProcessingException { ObjectMapper mapper = new ObjectMapper(); String settings = mapper.writeValueAsString(ratJson.getSettings()); return settings; }