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.

"dependantValue":{"543":{"Success":1}}

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.

Thanks
LVL 2
srikoteshAsked:
Who is Participating?
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.

gudii9Commented:
Below link explains getting value from json object. Hope that helps
http://stackoverflow.com/questions/7451600/jsonobject-how-to-get-a-value
0
srikoteshAuthor Commented:
how to form json object first
0
srikoteshAuthor Commented:
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

srikoteshAuthor Commented:
dependantValue":{"543":{"Success":1}}
I have changed the input request as
dependantValue":[{"dependently":543","Success":1}]
now I took list type in model class like
private List<DependentValue>dependentValue ;
setters,,,,,
getters....

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
dependentValue
success
setters and getters
0

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
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.