I'm receiving some JSON from an API. I created a Wrapper like this:
public class Wrapper{
public class cA{
List<cB> recordsB;
public class cB{
cC recordC;
public class cC{
String _some_id; // <--- Here I'm getting the error
}
}
}
}
So, when I call it to my HTTP future class, I try to parse it with:
Wrapper.cA dataResponse = (Wrapper.cA)JSON.deserialize(input, Wrapper.cA.class);
And I get the error
"Invalid character in identifier".
Thing is that I cannot change the name of the comming field _some_id. Can anybody tell me how could I parse this child class in order to receive the name as it is?
Thanks a lot in advance!