code: public static List<DomesticResult> parseList(JsonNode json) {
          List<DomesticResult> results = new ArrayList<DomesticResult>();
  
          for (int i = 1; i <= MAX_RESULTS; i++) {
              String itemFieldName = String.format("g%d", i);
  
              if (json.has(itemFieldName)) {
                  results.add(parseItem(json.get(itemFieldName)));
              } else {
                  break;
              }
          }
  
          return results;
      }
docs: json format:
  
  <pre>
  {
  "g1": {
  "type": 1,
  "address": "台湾"
  },
  "g2": {
  "type": 1,
  "address": "河北省 衡水市 武强县"
  },
  "g3": {
  "type": 0,
  "address": ""
  }
  }
  </pre>
  
  @param json response json string
  @return list of DomesticResult