how do i get the value from json object in java

Hi experts ,

i am getting the below value as input
now i have take this value and pass it to some web service and i need to get the response.

i am getting input in the below format.


now i want the above input in the below format how do i get in java

1.dependency_value = json_array of dependent actions eg: ["543"]

2. remidation_value = json_array of dependent actions on completion of status(success = 1/failure = 2/irrespective =3). If empty, then consider as 0. eg: ["1"] if Success.
3. task_action_value - json_encoded(array(action_Id=>task_action_id),(array(action_Id=>task_action_id))
here in this line action_id is 543 and task_action_id i will get it from another service call response.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Below link explains getting value from json object. Hope that helps
srikoteshAuthor Commented:
how to form json object first
srikoteshAuthor Commented:
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

srikoteshAuthor Commented:
I have changed the input request as
now I took list type in model class like
private List<DependentValue>dependentValue ;

the above request will come in request body of rest client
let suppose my model class name as Inputs
List<DependentValue > values =input. Getdependentvalue();
//here I am getting the values

dependent value class contains
setters and getters

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
srikoteshAuthor Commented:
I have resolved this issue by myself
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Services

From novice to tech pro — start learning today.