Create common gson adapter. Some changes also.