Package zowe.client.sdk.utility
Class JsonParserUtil
- java.lang.Object
-
- zowe.client.sdk.utility.JsonParserUtil
-
public final class JsonParserUtil extends Object
Utility class contains helper methods for JSON parse processing- Version:
- 5.0
- Author:
- Frank Giordano
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.json.simple.JSONObject
parse(String item)
This method is a wrapper for JSONParser().parse() call to parse z/OSMF response which may return ZosmfRequestException.static org.json.simple.JSONArray
parseArray(String item)
This method is a wrapper for JSONParser().parse() call to parse z/OSMF response which may return ZosmfRequestException.
-
-
-
Method Detail
-
parse
public static org.json.simple.JSONObject parse(String item) throws ZosmfRequestException
This method is a wrapper for JSONParser().parse() call to parse z/OSMF response which may return ZosmfRequestException.- Parameters:
item
- JSON string representation- Returns:
- JSONObject object
- Throws:
ZosmfRequestException
- indicates the JSON item from z/OSMF request is invalid for parsing
-
parseArray
public static org.json.simple.JSONArray parseArray(String item) throws ZosmfRequestException
This method is a wrapper for JSONParser().parse() call to parse z/OSMF response which may return ZosmfRequestException.- Parameters:
item
- JSON array representation- Returns:
- JSONArray object
- Throws:
ZosmfRequestException
- indicates the JSON item from z/OSMF request is invalid for parsing
-
-