@apatrida: the intention was to configure Jackson in the following way:
1. If there is no inheritance then, just PLAIN JSON serialization should be used, without type information
2. If there is inheritance (possible just annotation on the root hierarchy, for example), then type information should be added to JSON