How to use jackson convert nest json to map? #109
Replies: 1 comment
-
This is not a support forum; please use mailing list: https://groups.google.com/g/jackson-user Locking this "discussion", will soon delete. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have encounter a problem in my program。 there a nest json. I want to convert this nest json to map。then I use jackson objectMapper.readvalue() but all nest json convert to map, not my expected。I expected just first nest json level-one convert to map and other nest json dont need convert to map;
{ "avatar": { "avatar_240": "https://s1-imfile.feishucdn.com/static-resource/v1/v2_d909e5af-a424-43e2-9059-6793289d588g~?image_size=240x240&cut_type=&quality=&format=png&sticker_format=.webp", "avatar_640": "https://s1-imfile.feishucdn.com/static-resource/v1/v2_d909e5af-a424-43e2-9059-6793289d588g~?image_size=640x640&cut_type=&quality=&format=png&sticker_format=.webp", "avatar_72": "https://s1-imfile.feishucdn.com/static-resource/v1/v2_d909e5af-a424-43e2-9059-6793289d588g~?image_size=72x72&cut_type=&quality=&format=png&sticker_format=.webp", "avatar_origin": "https://s1-imfile.feishucdn.com/static-resource/v1/v2_d909e5af-a424-43e2-9059-6793289d588g~?image_size=noop&cut_type=&quality=&format=png&sticker_format=.webp" }, "city": "", "country": "", "department_ids": [ "0" ], "description": "", "email": "[email protected]", "employee_no": "", "employee_type": 1, "en_name": "", "gender": 0, "is_tenant_manager": true, "job_title": "", "join_time": 0, "mobile": "+8615936432675", "mobile_visible": true, "name": "zs", "open_id": "ou_742402e451bd4c1b94e7bd73506b5f63", "orders": [ { "department_id": "0", "department_order": 1, "user_order": 0 } ], "status": { "is_activated": true, "is_exited": false, "is_frozen": false, "is_resigned": false, "is_unjoin": false }, "union_id": "on_77553ddfbec2336bf5baee234e3aa5de", "user_id": "dcggfae4", "work_station": "", "open_department_id": "cfcd208495d565ef66e7dff9f98764da" }
Exception : Expected : but found =
({is_activated=false, is_exited=false, is_frozen=false, is_resigned=false, is_unjoin=false})
Beta Was this translation helpful? Give feedback.
All reactions