写了一个python脚本查询某个tag任意5个节点,用的http服务,查到结果后用result_to_df转成dataframe 想jsonify或者json.dump() 查询结果返回,结果出TypeEror:Object of type ValueWrapper is not JSON serializable
想问下ResultSet最好怎么处理成json返回
写了一个python脚本查询某个tag任意5个节点,用的http服务,查到结果后用result_to_df转成dataframe 想jsonify或者json.dump() 查询结果返回,结果出TypeEror:Object of type ValueWrapper is not JSON serializable
可以用 .cast_primitive()
Repo 的 readme 里有详细信息。
此外,服务端也有 execute_json 接口,这个是在 nebula server 端序列化的
此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。