APISonar


org.rapidoid.data.JSON.parse

> org > rapidoid > data > JSON > parse
org APIs rapidoid APIs data APIs JSON APIs parse APIs

Example 1
public void testTUUIDasJSON() {
		String json = "{\"x\":\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\"}";
		eq(JSON.stringify(U.map("x", new TUUID(0, 0, 0))), json);
		eq(JSON.parse(json), U.map("x", "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"));
		eq(JSON.parse(json, BeanWithId.class).x, new TUUID(0, 0, 0));
	}