On Wed, 9 Aug 2017 11:43:42 +0200, Sönke Ludwig wrote:

A more specific one, such as @floatPrecision(2) might be easier to
justify, though, as it could still guarantee that the generated JSON is
valid.

Yes, for my case it's enough, as UDA or even as the global serializeToJson() parameter.