1

I am trying to think of scenario to use Jackson TreeModel and Databinding API (Object mapper). When you would chose one again the another ?

Leo Prince
  • 940
  • 2
  • 14
  • 33

1 Answers1

1

URL-es you added to a question contain the answer in the overview.

Working with Tree Model

We’ll use JsonNode for various conversions as well as adding, modifying and removing nodes.

and

Intro to the Jackson ObjectMapper

This write-up is focused on understanding the Jackson ObjectMapper class – and how to serialize Java objects into JSON and deserialize JSON string into Java objects.

I can only confirm that. 99% of examples I had to serialize Java POJO classes to JSON and vice versa. When I need to change a little JSON I use Tree Model to avoid whole serializing and deserializing process.

Michał Ziober
  • 37,175
  • 18
  • 99
  • 146