query, modified for simplicity:
Code:
SELECT post_id, viewer_id, tagged_ids FROM stream WHERE source_id=100002487294420 AND updated_time>1333363915
returns
Code:
{ "data": [ {
"post_id": "100002487294420_183841518401962",
"viewer_id": 100003283444808,
"tagged_ids": [ 100002886616615 ]
}, {
"post_id": "100002487294420_261607593932148",
"viewer_id": 100003283444808,
"tagged_ids": [ ]
}...
]}
The problem occurs when trying to use FqlResult.getList to handle it.
getList assumes the contents of the array are objects, rather than primitives like ints or strings.
I suppose I need to use getObject() plain?
Code:
item.setTagged_ids((List<Long>)result.getObject("tagged_ids"));