gson « cast « Java Data Type Q&A





1. How to cast with GSON    stackoverflow.com

Is there the way to cast a string value within json to an int-, long- or double-member using GSON? What I mean, I have a json string, something like this:

{'timestamp':'1243274283728', 'distanse':'122.1'}
And I ...