Advertisement
Guest User

Untitled

a guest
Nov 20th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. public static void main(String[] args){
  2. String obj= "{timestamp: 123456789}";
  3. Gson gson1 = new Gson();
  4. Object o = gson1.fromJson(obj, Object.class);
  5. String out = gson1.toJson(o);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement