Having a Cloud Endpoints (ProtoRPC) message class with an integer field, e.g.
TestMsg(messages.Message):
int_field = messages.IntegerField(1)
and a method:
@endpoints.method(VoidMessage, TestMsg)
def test_int_field():
return TestMsg(int_field=1234567890123)
On local dev server JSON response correctly results in:
{ int_field: 1234567890123 }
Whereas in production the number gets converted to a string for some reason:
{ int_field: "1234567890123" }
For smaller numbers integers don't seem to be converted to strings though.
Is this expected behaviour? Anyone can repro? (In case it matters: I'm running this code in EU datacenters)