It should work as long as the implicit for the JSONR is defined as a val rather than a def since hashCode should return the same value for the same instance, but I'll double check.