In fact, I'm doing this in Java, it's a Maven project and hosted as a web service on GlassFish. The service returns the data in json format. The problem is when the values are null, I have to serialize them as "" or "null". I want to return as just null. However, I still can't find a way.