Cleanup for invoice json in jaxrs