Let us start with sharing working and pastable code (requires google gson package):
package mypackage; import com.google.gs