Add equals() and hashCode() to JSON return object