Array Json to List<MyObject> with Gson or Xtream
===

Hello I had this follow json code.

    [{"check":{"domain":"qwe.coedu.br"}},{"check":{"domain":"qwe.com.br"}},{"check":{"domain":"qwe.com"}}]"

How do to convert this json in my object 

    class Check {String domain , String status ...}

It return a List<Check>, but the Check attributes are null. See my code. with Gson.

    Gson gson = new Gson();
		Type fooType = new TypeToken<Collection<Check>>(){}.getType();
		System.out.println(((List<Check>)gson.fromJson("[{\"check\":{\"status\":\"2\",\"domain\":\"william.com.br\"}}]", fooType)).get(0).getDomain());

When I debug my returned list, this contains all objects in list, but all with your atributtes null.

What is wrong ?

