T
T
Tsuzukeru2021-04-27 14:21:49
Java
Tsuzukeru, 2021-04-27 14:21:49

How to get POJO from JsonArray?

Is it possible to convert a simple JsonArray like ["url","url","url"] into a data class without using deserializers?
If so, what should the class look like then?
I am using Gson.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan, 2021-04-27
Hasanly @azerphoenix

Online - https://www.jsonschema2pojo.org/
They also have a maven plugin that you can use.
Can generate pojo for jackson & gson etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question