Refactored to create only one Gson instance per JsonParser instance.