I have a JSON response which contains a timestamp, but I’m having some issues parsing it to a date object. I’m having the same difficulty serializing it back into the same format as well. I’m using Gson to decode the JSON responses to objects and this is the only spot I’m having a hicup with.
"TimeStamp":"\/Date(1327650052632+0000)\/"
I did have a look at the custom serialize/deserialize adapters, but couldn’t make heads or tails from it.
Regards,
EZFrag
I managed to understand the adapters (sort of). Here is the code I used: