/* * IBM Confidential * * OCO Source Materials * * IBM Cognos Products: Moser * * (C) Copyright IBM Corp. 2020 * * The source code for this program is not published or otherwise * divested of its trade secrets, irrespective of what has been * deposited with the U.S. Copyright Office. */ package com.ibm.bi.platform.modeling.sdk.examples; import java.io.IOException; import com.ibm.json.java.JSONArray; import com.ibm.json.java.JSONObject; /** * @author nbalaba * */ public class ResponseParser { public static void parseResponse(String json) throws IOException{ JSONObject response = JSONObject.parse(json); if( response.containsKey("data")){ JSONArray data = (JSONArray) response.get("data"); } } }