Get an Object from an Array using Json and Java

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member

Get an Object from an Array using Json and Java


i have a table in the form of json that contains objects one of the variable of this object is u object how can i get this i explain it all with an example, i want to get variable using java how can i do it

  {  "data": [   {   "id": "40406",   "processInstanceId": "40398",    "processInstanceUrl": "http://10.6.99.57:8888/activiti-     rest/service/history/historic-process-instances/40398",    "taskId": null,    "variable": {    "name": "nbj",     "type": "string",     "value": "3",     "scope": null      }        },     {       "id": "40408",      "processInstanceId": "40398",         "processInstanceUrl": "http://10.6.99.57:8888/activiti-       rest/service/history/historic-process-instances/40398",       "taskId": null,       "variable": {       "name": "nom",       "type": "string",       "value": "yasmine",        "scope": null         }          },          {        "id": "40404",         "processInstanceId": "40398",          "processInstanceUrl": "http://10.6.99.57:8888/activiti-            rest/service/history/historic-process-instances/40398",           "taskId": null,            "variable": {            "name": "reponse",             "type": "string",              "value": "1",              "scope": null                }                 }                 ], 
1 Reply
Highlighted
Alfresco Employee

Re: Get an Object from an Array using Json and Java

I guess this is the same question you've asked on stackoverflow. I'm assuming you want to read the data from the json. Otherwise maybe you could use the engine java api