upgrading gson version, and fixing some json bugs