I have a simple class for giving out count and db cursor information.
public class Cursor
{
public String cursor = null;
public int count = -1;
}
I do not wish to send count and cursor (while serialization) if they are null or -1 which are set by default.
Researching, I figured out that I should be using a view but I cannot figure out how to use it and the view implementation to avoid the default values.
Deserialization is not required for this class.
Thanks.