U
U
UxName2017-07-12 17:08:23
Java
UxName, 2017-07-12 17:08:23

How to parse very large JSON into a java object?

How to convert json (gson or jackson, it doesn't matter) into a json object with recursion elements using stream reading?
json example: (each values ​​object can contain one more values ​​object)

{
  "values": [
    {
      "name": "Name 1",
      "values": [
        {
          "name": "Name 1.1"
        }
      ]
    },
    {
      "name": "Name 2"
    }
  ]
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question