If you want to serialize only certain properties then you can use Gson based @expose option something like below, the below code will serialize the only linkUrl properly and it will not serialize linkText property
In order to work @expose annotation’s properly, you must create Gson instance by using the GsonBuilder class, check below code
A technology enthusiast and a professional blogger from India. Through out my IT career, I have had the pleasure of working on various new technologies and built products like www.ziprides.com and some other products. Unfortunately, my attempts have not given me the desired results and as a result, I have finally decided to build a professional blog where I would like to share all my learnings and hoping to learn from other enthusiasts around the world.