Resolution: Works as Designed
Affects Version/s: 2.0.1 (Kay SR1), 2.0.2 (Kay SR2)
Fix Version/s: None
This issue appeared in Spring-Data release 2. In latest version 1.13.9 (and older) it works fine.
Same for Spring-Data 2 style:
Also tried simple Spring application without Spring Boot with Java config as well as with XML config. Result is same:
If I change Spring-Data version to 1.X I'm getting correct JSON response for sorting object:
It seems I tried everything, I didn't find any notification on sort changes in changelog, I didn't find such issue in Spring JIRA.
So the question is how do I get with spring-data 2.X libs JSON with sorting like: