我试图解析在JSON数组中定义的数组列表。但是我面临的问题是JSON数组中的数组列表没有任何键。com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of com.example.myapp.dto.WayPoints out of START_ARRAY token at [Source:retrofit.ExceptionCatchingTypedInput$ExceptionCatchingInputStream@42d3464; line:
我有一个包含JSON对象数组的InputStream。每个单独的对象都可以使用Jackson的ObjectMapper解析为一个Java类Person public class Person { public Int age;}
ObjectMapper objectMapper = new ObjectMapper(); 在内存
我有一个名为JSONParser的类,它可以找到我需要的所有信息。我创建了一个ArrayList变量,并按照需要填充数据。但是..。如果我试图从其他活动中获取此ArrayList,它不会返回任何值…… ArrayList<Day> days = new ArrayList<>();
new getAllURLs().execute("https://...");
}