I have a simple user class with a Double[] variable for specifying a user's location.
@Document
public class User {
private long id;
private Double[] location;
}
This is the code that i have tried with to serialize my User object
new JSONSerializer()
.transform(new ArrayTransformer(), Double[].class)
.serialize(object));
But the location field won't get serialized, other fields are serialized though.. Could someone please help?
Thanks!