Android StudioでのJacksonでのJsonデータ表示について

[code]

    public class MainActivity extends AppCompatActivity {
        @Override
        protected void onCreate(Bundle savedInstanceState){
    
    
            ObjectMapper mapper = new ObjectMapper();
            try {
    
                JackSon response = mapper.readValue(
    
    
                 new URL("http://express.heartrails.com/api/json?method=getAreas"),
                        JackSon.class);
                String m = response.get("response").get(0).get("area").asText();
    
                super.onCreate(savedInstanceState);
    
                setContentView(R.layout.activity_main);
    
                TextView textView = (TextView) findViewById(R.id.text_view);
    
                textView.setText(String.valueOf(m));
    
            } catch (IOException e) {
                e.printStackTrace();
            }
    
        }
    }
    
[/code]

上記のコードでは、`response.get`のgetに`Cannot resolve method
'get(java.lang.String)'`と言うエラーが出ています。

[code]

    @Data
    public class JackSon {
        private Area response;
    
        @Data
        public class Area {
            private String[] area;
        }
    }
    
[/code]

このコードをどうようにすれば表示されるようになりますか？

[code]

    [
      {
        "a": "xxx",
        "b": yyy
      },
      {
        "a": "xxxx",
        "b": yyyy
      },
      {
        "a": "xx",
        "b": yy
      }
    ]
    
[/code]

上記のURLではなくこのような形のJSONデータを表示する場合どのように変えればよいですか？




JavaBeanクラス`JackSon`:

[code]

    import com.fasterxml.jackson.annotation.JsonProperty;
    
    import java.util.List;
    
    public class JackSon {
    
        @JsonProperty("response")
        private Response response;
    
        public void setResponse(Response response) {
            this.response = response;
        }
    
        public Response getResponse() {
            return response;
        }
    
    
        public static class Response {
    
            @JsonProperty("area")
            private List<String> area;
    
            public void setArea(List<String> area) {
                this.area = area;
            }
    
            public List<String> getArea() {
                return area;
            }
    
        }
    }
    
[/code]

* * *
[code]

    public class MainActivity extends AppCompatActivity {
        @Override
        protected void onCreate(Bundle savedInstanceState){
            ObjectMapper mapper = new ObjectMapper();
            JackSon response = null;
            try {
                response = mapper.readValue( new URL("http://express.heartrails.com/api/json?method=getAreas"), JackSon.class);
    
            final List<String> area = response.getResponse().getArea();
            final String s = area.toString();
                super.onCreate(savedInstanceState);
    
                setContentView(R.layout.activity_main);
    
                TextView textView = (TextView) findViewById(R.id.text_view);
    
                textView.setText(String.valueOf(m));
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
    
[/code]

