How to convert file JSON to class POJO complet using Java?
I tried with Jackson API but the result is arrayList and I want a class complet like:
class test {
    public int age ;
    public string name ;
}
This is my code:
public static void main(String[] a) 
{ 
    ObjectMapper mapper = new ObjectMapper();
    Staff value = null;
    try {
        value = mapper.readValue(new File("C://staff.json"), Staff.class);
    } catch (Exception e) {
        e.printStackTrace();
    }   
    System.out.println(value);                  
}
Staff is a normal class with fields and getters setters.
I want to display the class complet when I enter file json, not display array.
 
    