{
"id":1,
"name":"Bitcoin",
"quote":{
"USD":{
"price":9283.92,
"market_cap":158055024432
}
}
}
deserialize the above json to the following object
public class TokenInfo implements Serializable {
private String name;
private String id;
private BigDecimal price;
private BigDecimal marketCap;
}
can be handled manually, but I don"t want to repeat it if jackson supports it by default.
has anyone ever encountered such a scenario, please give us some advice on the solution