fixed TypeError in to_json_stat()
fixed TypeError in to_json_stat()
fixed TypeError in to_json_stat()