IE
Size: a a a
IE
A
A
@Test
public void testTest0() {
HashMap<String, Object> map = new HashMap<>();
map.put("string", "test");
map.put("int", 1000);
map.put("double", 1.5);
String json = new Gson().toJson(map);
Type type = new TypeToken<Map<String, Object>>(){}.getType();
assertEquals(new Gson().fromJson(json, type), map);
}
expected [{string=test, double=1.5, int=1000}] but found [{string=test, double=1.5, int=1000.0}]
IE
map.put("int",
(int) 1000);
String
expected_json =
"[{string=test, double=1.5, int=1000}]
"A
map.put("int",
(int) 1000);
String
expected_json =
"[{string=test, double=1.5, int=1000}]
"map.put("int",
(double) 1000);
но
это не решение.IE
AV
Э
AV
rm
AZ
AZ
ŚW
YO
ŚW
ŚW
EB
ŚW
YO
EB