如何创建 json 数组的 pojo class
How can I create pojo class of json array
如何创建这种类型的 JsonArray 的 pojo class
以下链接回复
https://fakestoreapi.com/products/categories
[
"electronics",
"jewelery",
"men's clothing",
"women's clothing"
]
就用String的ArrayList
public class ClassName{
@JsonProperty("MyArray")
public ArrayList<String> myArray;
}
如何创建这种类型的 JsonArray 的 pojo class 以下链接回复 https://fakestoreapi.com/products/categories
[
"electronics",
"jewelery",
"men's clothing",
"women's clothing"
]
就用String的ArrayList
public class ClassName{
@JsonProperty("MyArray")
public ArrayList<String> myArray;
}