With GSON we would need to implement custom deserializer for each query which contains "_links" or "_embedded" to accomplish that. If I use "links" for example then JSON will not be deserialized properly.