【问题标题】:How to json decode in zoho如何在zoho中进行json解码
【发布时间】:2016-05-04 07:19:20
【问题描述】:

我的 json 代码:输入

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

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

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

【问题讨论】:

  • 请给我答案这不是 php 这是 zoho creator
  • 你已经用 PHP 标记了你的问题,所以你在 PHP 中得到了你的 json?!
  • 用 zoho 标记 php

标签: zoho


【解决方案1】:

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

尝试:

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

【讨论】:

  • 请帮我从这段代码中找到状态 {"responseCode":"200","re​​sponseText":"ID: 72e107588bc1e553427c8c72c6a4695a Status: 009"}
  • 试试:SMS_ID = responseText.substring(45);
  • 如何从下面的代码中获取 url {"projects":[{"is_strict":"no","role":"admin","owner_name":"James Lozos","IS_BUG_ENABLED" :true,"created_date_long":1502180785112,"owner_id":"647743525","link":{"task":{"url":"projectsapi.zoho.com/restapi/portal/sqmscrm/projects/…"}}]}
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-01-13
  • 1970-01-01
相关资源
最近更新 更多