This question already has an answer here:
I have an APEX class that should have a property named "number" but since this is a restricted keyword in Salesforce, I'm not allowed to do that. I have found a solution where I should name it number1 and then make a .replace() on serialized JSON string. But this does not seem safe. Is there any safer way like annotating this property "number1" with value "number" so that it generates JSON element named "number"?