Speak now
Please Wait Image Converting Into Text...
Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Challenge yourself and boost your learning! Start the quiz now to earn credits.
Unlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
General Tech Bugs & Fixes . 1 year ago
Turn Your Knowledge into Earnings.
I'm testing a API where it return response as a Array,I am finding it difficult in storing in list or Array?
I am using JsonPath to fetch the records
API response looks like this
[ "String1", "String2", "String3", "String4", "String5" ]
I am Using below code
Response response; JsonPath jsonPathEvaluator = response.jsonPath(); jsonPathEvaluator.getString("[0]");
{ "Strings":[ "String1", "String2", "String3", "String4", "String5" ] } JsonArray arrObj = empObj.getJsonArray("Strings");
General Tech 9 Answers
General Tech 7 Answers
General Tech 3 Answers
General Tech 2 Answers
Banking, Finance & Insurance
Mobile Technologies
Career Talk
General Tech
Commerce & Accounting
Career Talk0 Answers
General Tech0 Answers
Digital Marketing0 Answers
Internet of Things0 Answers
Interview Questions0 Answers
Your experience on this site will be improved by allowing cookies.