Hi
I am trying to produce a json post request to a REST service. The post
request must have the following format:
Sample Request:
{
"id": "2008-06-16T13:36:35Z",
"type": "json",
"data_fields": ["time", "latitude", "longitude", "elevation",
"h_accuracy", "v_accuracy"]
"data": [
["2011-04-19T16:09:03-07:00", 37.7020145393908, -122.496896423399, 109,
10, 10],
["2011-04-19T16:09:14-07:00", 37.7020145393908, -122.496896423399, 109,
10, 10],
["2011-04-19T16:09:24-07:00", 37.7020145393908, -122.496896423399, 109,
10, 10]
]
}
Please note that this is a 2 dimensional array (no comma after
"v_accuracy"]. How do I do this using jersey ?
I am able to produce a 1 dimensional array but the service requires that
this be 2 dimensional.
Any ideas ?
Thanks
J