application/hal+json helper in perl