-2
 "testing":{"infixSuggester":{
      "Sample":{
        "numFound":10,
        "suggestions":[{
            "term":"test",
            "weight":0,
            "payload":""},
            {
            "term":",
            "weight":0,
            "payload":""}

I want this JSON to convert it into a POJO Class. Can anyone suggest how to do it? where "Sample" is the string value which is creating dynamically.

Vamsi
  • 25
  • 1
  • 5

1 Answers1

0

Seems like Gson or Jackson can do the trick: https://stackabuse.com/how-to-convert-json-object-to-java-object-with-jackson/