Open greenlaw110 opened 4 years ago
For the following given POJO class:
public static class Bar { public int id; } public static class Foo { public String name; public Bar bar; }
Suppose an instance of Foo has the following data:
Foo
{ "name": "abc", "bar": { "id": 123 } }
Then it shall be able to map to Map<String, Object> as:
Map<String, Object>
"name": "abc", "bar.id": 123
The reverse mapping shall also apply
For the following given POJO class:
Suppose an instance of
Foo
has the following data:Then it shall be able to map to
Map<String, Object>
as:The reverse mapping shall also apply