I've searched on internet about my problem.. but I not found a good solution.
I need to get the json showed at the end:
I've 2 classes
class Order {
Long id;
Client client;
}
class Client {
Long id;
}
When I serialize Order I get:
[{"id":1,"client":{"id":1}]
But I want instead to obtain:
[{"id":1,"client":1}]
How can i reach this?
Thank you for any solution!!! Marco