I have following response from the mongodb and i can't find a way to desearialize it .
[{ "_id" : { "$oid" : "some ids"} ,
"index" : 0 ,
"question" : "some text ?",
"optiona" : "OS",
"optionb" : "JAVA",
"optionc" : "C",
"optiond" : "C#",
"answer" : "JAVA",
"created_at" : { "$date" : "2012-09-20T06:37:04.306Z" },
"Active" : "1"
},
{ "_id" : { "$oid" : "505ab997aded66f4c1ccc7f3" },
"index" : 1 ,
..../objects like that
}]
More specifically , i can't find a way to parse the $date element and $oid .How do i write a data member corresponding to that element or do i have to write an inner class? it may seem very basic question but i couldn't find a way .i will use that class in gson parse to parse .Thanks