Skip to content

Tag: jackson-databind

How to merge two jsonNodes in one

I have two variables of class User as follows: I want to create a JsonNode with the following structure: I have converted the objects to nodes, but I do not know how to merge them using Jackson. Or is there a more efficient way to create one json node structure with the two classes ? I am using Kotlin and

JSON data mapping in Java with Jackson

I got stuck in mapping a json into my data structures “the easy way” using just Jackson decorators and I was wondering if there is a way to do this … The json that I try to read has the following structure: So basically every data entity has a “data_info” object (mapped in my cod…