gpt4 book ai didi

zoho - 如何在zoho中进行json解码

转载 作者:行者123 更新时间:2023-12-01 15:45:25 24 4
gpt4 key购买 nike

我的json代码:输入

{"responseCode":"200","responseText":"ID: 2ce934c860f48b02fb755178f8ac0a2"}

如何在 zoho creator 中进行 json 解码==> 这是对的吗?

responseCode=jsondata.getJSON("responseCode");
responseText=jsondata.getJSON("responseText");
SMS_ID=responseText.getJSON("ID");

最佳答案

这几乎是正确的。请注意,"ID: 2ce934c860f48b02fb755178f8ac0a2" 只是一个字符串,而不是 JSON 元素。

尝试:

responseText=jsondata.getJSON("responseText");
SMS_ID = responseText.remove("ID: ");

关于zoho - 如何在zoho中进行json解码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37020959/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com