jackson deserialize array into a java object

前端 未结 2 1193
一生所求
一生所求 2021-01-20 21:53

I have json\'ed array of host, port, uri tuples encoded by 3rd party as an array of fixed length arrays:

[
  [\"www1.example.com\", \"443\", \"/         


        
2条回答
  •  醉话见心
    2021-01-20 21:59

    Consider importing the two dimensional array and then running through a loop. Then you can have a constructor on the Endpoint class that accepts each instance of internal array.

提交回复
热议问题