【问题标题】:How to parsing Json in Zoho CRM如何在 Zoho CRM 中解析 Json
【发布时间】:2017-08-08 08:59:32
【问题描述】:

如何在 Zoho 中解析 json

我的输入低于

{"projects":[{"is_strict":"no","role":"admin","owner_name":"James Lozos","IS_BUG_ENABLED":true,"created_date_long":1502180785112,"owner_id":"647743525","link":{"task":{"url":"https://projectsapi.zoho.com/restapi/portal/sqmscrm/projects/1115954000000093005/tasks/"}}}]}

输出:我们需要上面的 url:https://projectsapi.zoho.com/restapi/portal/sqmscrm/projects/1115954000000093005/tasks/

【问题讨论】:

    标签: json zoho


    【解决方案1】:

    这取决于您使用的编程语言。 例如:在 Python 中,我们可以像这样使用 json 库

    导入 json

    txt = '{"projects":[{"is_strict":"no","role":"admin","owner_name":"James Lozos","IS_BUG_ENABLED":true,"created_date_long":1502180785112, "owner_id":"647743525","link":{"task":{"url":"https://projectsapi.zoho.com/restapi/portal/sqmscrm/projects/1115954000000093005/tasks/"}}}]}'

    obj = json.loads(txt)

    或者在来自 api 的结果上下文中,您可以使用请求的 .json() 函数(再次使用 Python)

    导入请求

    result = requests.get('url-of-api')

    obj = result.json()

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-16
      • 2019-05-25
      • 2020-08-12
      • 2021-04-01
      相关资源
      最近更新 更多