I'm trying to create a json list using the result of an api call and parse it with the toJSONList() function.
The API call works fine, but unfortunately I'm not able to find out how to process the result and create a (json) list of it to be able to do something useful with it.
[
{
"id": 1231314,
"kind": "project",
"name": "Philips ActiveLink SalesForce integration",
"version": 220,
"iteration_length": 1,
"week_start_day": "Monday",
"point_scale": "0,1,2,3,5,8,13",
"point_scale_is_custom": true,
"bugs_and_chores_are_estimatable": false,
"automatic_planning": true,
"enable_tasks": true,
"time_zone": {
"kind": "time_zone",
"olson_name": "Europe/Amsterdam",
"offset": "+01:00"
},
"velocity_averaged_over": 3,
"number_of_done_iterations_to_show": 12,
"has_google_domain": false,
"enable_incoming_emails": true,
"initial_velocity": 10,
"public": false,
"atom_enabled": false,
"start_date": "2015-01-05",
"start_time": "2015-01-04T23:00:00Z",
"created_at": "2014-12-16T12:38:55Z",
"updated_at": "2015-01-12T23:28:03Z",
"account_id": 468847,
"current_iteration_number": 5,
"enable_following": true
},
{
"id": 763339,
"kind": "project",
"name": "Seacon ESB",
"version": 2173,
"iteration_length": 2,
"week_start_day": "Monday",
"point_scale": "0,1,2,3,5,8,13",
"point_scale_is_custom": true,
"bugs_and_chores_are_estimatable": false,
"automatic_planning": true,
"enable_tasks": true,
"time_zone": {
"kind": "time_zone",
"olson_name": "Europe/Berlin",
"offset": "+01:00"
},
"velocity_averaged_over": 3,
"number_of_done_iterations_to_show": 3,
"has_google_domain": false,
"enable_incoming_emails": true,
"initial_velocity": 28,
"public": false,
"atom_enabled": false,
"start_date": "2013-02-25",
"start_time": "2013-02-24T23:00:00Z",
"created_at": "2013-02-22T11:02:31Z",
"updated_at": "2015-01-12T23:15:01Z",
"account_id": 468847,
"current_iteration_number": 51,
"enable_following": true
},
{
"id": 1071466,
"kind": "project",
"name": "Yellowbrick Banksy",
"version": 1796,
"iteration_length": 2,
"week_start_day": "Monday",
"point_scale": "0,1,2,3,5,8,13",
"point_scale_is_custom": true,
"bugs_and_chores_are_estimatable": false,
"automatic_planning": false,
"enable_tasks": true,
"time_zone": {
"kind": "time_zone",
"olson_name": "Europe/Amsterdam",
"offset": "+01:00"
},
"velocity_averaged_over": 3,
"number_of_done_iterations_to_show": 12,
"has_google_domain": false,
"enable_incoming_emails": true,
"initial_velocity": 22,
"public": false,
"atom_enabled": false,
"start_date": "2014-05-19",
"start_time": "2014-05-18T22:00:00Z",
"created_at": "2014-05-01T12:31:56Z",
"updated_at": "2015-01-12T23:23:13Z",
"account_id": 468847,
"current_iteration_number": 19,
"enable_following": true
}
]
I'm guessing it somehow is due to the way I'm using the toJSONList() call. In the examples and docs it shows it should be used like this json.getJSON("Designation");, with an argument stating the name of the object you want to extract into a list. BUt my json message does not contain a named object. I already tried to use no argument (raises an error about not using an argument), I also tried "", but that does not make any difference.
So I'm stuck because I'm not able to use the api right now. Maybe any friendly dev can help?