Skip to content

Commit 9ccbf99

Browse files
committed
[master] -implemented function for conversion JSON array string to JSON Array object
1 parent f0ea0fe commit 9ccbf99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/http/helpers/Parser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public static String getXMLValue(String xml, String selector) throws ParserConfi
4040
return nodes.item(0).getNodeValue();
4141
}
4242

43-
public static JsonArray jsonToJsonArray(String json, String key) throws ParseException {
44-
return (JsonArray) new JsonParser().parse(Parser.getJSONValue(json, key));
43+
public static JsonArray jsonToJsonArray(String jsonArray) throws ParseException {
44+
return (JsonArray) new JsonParser().parse(jsonArray);
4545
}
4646

4747
public static List<String> getXMLValues(String xml, String selector) throws ParserConfigurationException, XPathExpressionException, IOException, SAXException {

0 commit comments

Comments
 (0)