[json-lib-user] Transform from JSON to Java
Brought to you by:
aalmiray
From: Alexander C. <a.s...@gm...> - 2010-08-06 06:22:35
|
Hello. I'm using json-lib first time. I need to transform json (string or JSONObject) to JavaBean. But i need to transform specific attribute not to primitive class, but to specific bean. In example, i have json of Region object: {id: 1, secondaryRegion: 3, ldapInterface: 212} Id is a simple integer, but secondaryRegion and ldapInterface more complex type. I need to transform secondaryRegion to Region bean with id 3 and ldapInterface to LdapInterfaceModel with id 212. How i can set transformation to attributes with given name? |