Пример #1
0
  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;
  }
Пример #2
0
  public static String getSettings(RATJsonObject ratJson) throws JsonProcessingException {
    ObjectMapper mapper = new ObjectMapper();
    String settings = mapper.writeValueAsString(ratJson.getSettings());

    return settings;
  }