How to parse with GSON when file looks like this
{
"Person Id":"test",
"Last Name": "test",
"First Name":"test"
}
I know to parse when names doesn't have space between, I create class like
class Person{
public String PersonId;
public String LastName;
public String FirstName;
}
but how to parse when identifier has space inside ? What to change in Person class ? ( I cannot change format of file ).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…