code for gson factory