Some api need json like this:
{
"token_123213p123": ""
}
the token_123213p123
is dynamic, so I create a class:
@Data
public class Entity {
// I will set 'token_123213p123' in this
@JsonIgnore
private String token;
}
so how to when serialize to add "token_123213p123": ""
from token