class IgIndexResponseParser {

  public static List<InstrumentInfo> createInstrumentInfoList(String json) throws IOException {
    checkNotNull(json);
    ImmutableList.Builder result = ImmutableList.builder();
    JsonNode node = (new ObjectMapper()).readTree(json).get(TAG_MARKETS);
    checkNotNull(node, String.format("Tag [%s] not found in JSON text.", TAG_MARKETS));
    for (int i = 0; i < node.size(); i++) {
      result.add(createInstrumentInfoForList(node.get(i)));
    }
    return result.build();
  }

}