I am writing an android application which interacts with a Rest api which replies back with json object to the applicatoin. I need to get a particular property from that json object (I need to have both key and value of that property). I am using Google volley to access the API.
For Example, Below is a response from the API. I want to extract the property "context" with it's value from the output below, means i want to have the context Object from the output:
{
"input": {
"text": ""
},
"context": {
"conversation_id": "xxxxxxxxxxxxxxxxxxx",
"system": {
"dialog_stack": [
"Welcome"
],
"dialog_turn_counter": 1,
"dialog_request_counter": 1,
"_node_output_map": {
"Welcome": [
0
]
}
}
}
}