jtransc / gdx-backend-jtransc

GDX backend for JTransc: targeting every platform lime supports (html5, windows, linux, mac, android, ios...) (flash is wip) (consoles + unity likely to be supported in the future)
23 stars 6 forks source link

Deserialization problem #20

Closed soywiz closed 8 years ago

soywiz commented 8 years ago

This code fails:

HashMap<String, Object> map = new HashMap<>();
map.put("hello", "world");
map.put("int", 10);
Json json = new Json();
System.out.println(json.toJson(map));
HashMap<String, Object> map2 = json.fromJson(HashMap.class, json.toJson(map));
System.out.println(map2);

Required for #17