Created Jackson-based custom serializer for HalResource.