in IdentityRestlet, serialize the json properly