标签: javascript api google-cloud-functions http-post stdclass
我有一个后置请求API,该API返回stdClass对象作为响应。 我在Javascript中使用Firebase Cloud函数,并尝试使用response.json(),但出现错误 “将循环结构转换为JSON”,因此我需要将stdClass对象转换为数组或json或对其进行处理。有什么解决办法吗?