I have some JSON that I am deserializing using Gson.
{
"resp": {
"posts": [
{
...
"public": true,
...
}]
}
My problem is that public
is a Java keyword, so how would I make a field in my class that correlates with the public
field in the JSON?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…