Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

i have successfuly used the JSON tool plugin in webs service that returns single row such as :-

Code Block
langjavascript
{
"activityId": "1079_563_crm_process1_approve_proposal",
"assignment": "admin",
"nextActivityId": "1093_563_crm_process1_send_proposal",
"processId": "563_crm_process1",
"status": "completed"
}

but now i need to call web services that return multiple rows of json data, but how i should configure the JSON tool plugin in-case the return JSON will have multiple rows , such as :-

Code Block
langjavascript
{
"data":
[
{"id":"3724_mdec_v1002_mdec_wp1", "serviceLevelMonitor":"<span class=\"dot_red\"><\/span>", "name":"mdec_wp1","state":"open.running", "due":"Fri Mar 20 14:01:27 SGT 2009", "startedTime":"Fri Mar 20 13:51:27 SGT 2009","version":"2"}

,
{"id":"3725_mdec_v1002_mdec_wp1", "serviceLevelMonitor":"<span class=\"dot_red\"><\/span>", "name":"mdec_wp1", "state":"open.running", "due":"Fri Mar 20 14:03:16 SGT 2009", "startedTime":"Fri Mar 20 13:53:16 SGT 2009", "version":"2"}

]
}

Is there a way for example to define a loop inside the JSOn tool plugin or something similar to?
Best Regards