Question: Trying to Parse through a JSON Array to get an ID in JAVA. I am trying to parse through this JSON Array, get the ID
Trying to Parse through a JSON Array to get an ID in JAVA.
I am trying to parse through this JSON Array, get the ID number ("id":1967), and put the ID number into a long int using JAVA. Below is the JSON Array.
{"name":"test","id":"c826cd77-6287-40a5-9584-36706f09fd76","runs":[{"completed_on":null,"milestone_id":94,"description":null,"custom_status3_count":0,"is_completed":false,"retest_count":0,"custom_status5_count":0,"project_id":3,"id":1967,"suite_id":7,"custom_status2_count":0,"include_all":true,"passed_count":0,"custom_status7_count":0,"custom_status4_count":0,"created_by":2,"url":"https:\/\/hi.testrail.io\/index.php?\/runs\/view\/1967","config_ids":[],"blocked_count":0,"created_on":1539234735,"untested_count":1,"name":"test","assignedto_id":null,"failed_count":0,"custom_status1_count":0,"custom_status6_count":0,"entry_id":"c826cd77-6287-40a5-9584-36706f09fd76","config":null,"plan_id":1780,"entry_index":20}],"suite_id":7}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
