0

I want to create JSONschema for Java through jsonschema2pojo but return an empty screen below is a valid JSON string, how to create model classes in java for such JSON string while using retrofit2?

[
   [
      "S#",
      "Name of Minister",
      "Portfolio",
      "Contact #",
      "PRO Name",
      "PRO Contact",
      "PRO Contact #"
   ],
   [
      "1",
      "Mr. Mohammad Ali Saif",
      "Information and PRs",
      "9212894",
      "Mr. Rizwan Malik",
      "0345-",
      ""
   ],
   [
      "2",
      "Mr. Abdul Karim",
      "Industries",
      "9213859",
      "Mr. Khan Sarwar",
      "0333-",
      "abdulkarim.png"
   ]
]
Attaullah
  • 3,856
  • 3
  • 48
  • 63

1 Answers1

0

You can use fastjson api ,FastJson provides easily APIs to convert Java objects to / from JSON

kervin
  • 1
  • 1
  • any sample code, if you have please – Attaullah Nov 06 '22 at 15:05
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Nov 09 '22 at 03:13