配置CloudEndpoints生成的JSON

配置CloudEndpoints生成的JSON,json,google-app-engine,google-cloud-endpoints,Json,Google App Engine,Google Cloud Endpoints,我正在使用GoogleCloudEndpoints在GoogleAppEngine上提供REST端点 我想隐藏服务器上POJO上可用的一些成员。端点发送的JSON中不应存在这些内容。一种解决方法是在发送成员之前将其设置为null,但肯定有一种更干净的方法?使用 @ApiSerializationProperty(ignored = AnnotationBoolean.TRUE) String memberToHide;

我正在使用GoogleCloudEndpoints在GoogleAppEngine上提供REST端点

我想隐藏服务器上POJO上可用的一些成员。端点发送的JSON中不应存在这些内容。一种解决方法是在发送成员之前将其设置为null,但肯定有一种更干净的方法?

使用

@ApiSerializationProperty(ignored = AnnotationBoolean.TRUE)
String memberToHide;