I'm using RESTEasy to send objects over my rest api with JSON. It's very convenient - every field is automatically populated in the JSON object. But there are some fields (e.g. passwordhash
) that I'd rather not send. I'd also like to strip out any null values - there's no need to send those.
Can I affect how JSON is created?
I'm using Jettison, RESTEasy 2.0.1.GA and, I think, JAXB, although I'm having an infuriatingly-hard time actually being sure of that.