Json trello如何访问其他表

问题描述

我是json的新手。

尝试编写一个脚本,使我可以在标签中使用| name |:“ New”:{{}} (在颜色字段旁边的错误中以粗体显示

相反,我假设它占用了整个列,并且无法将其转换为字符串

set jsonString to fetch JSON from "https://trello.com/1/members/my/cards?
fields=idList,List,name,url,desc,labels,due,idBoard&key=" & trelloAppKey & "&token=" & trelloUserToken
        
    set nCards to count of jsonString
    repeat with iCard from 1 to nCards
            
            
-- Get the label
set labelName to labels of |name| of item iCard of jsonString as string 

这是jason表和错误

error "Can’t make labels of |name| of item 1 of {{idList:\"5f5fd0fbc326b33f0e2b66ba\",labels:
{{idBoard:\"5ccedb98b40ac476d0f966de\",|id|:\"5f5fefb1ff2d3b10574686ef\",|name|:\"New\",|color|:\"blue\"}},|url|:\"https://trello.com/c/g0ySLI80/30-hello\",|id|:\"5f608db5e18b347bed435144\",due:missing value,idBoard:\"5ccedb98b40ac476d0f966de\",|name|:\"hello\",desc:\"\"}} into type string." number -1700 from labels of |name| of item 1
 of {{idList:"5f5fd0fbc326b33f0e2b66ba",labels:{{idBoard:"5ccedb98b40ac476d0f966de",|id|:"5f5fefb1ff2d3b10574686ef",**|name|:"New"**,|color|:"blue"}},|url|:"https://trello.com/c/g0ySLI80/30-hello",|id|:"5f608db5e18b347bed435144",due:missing
 value,idBoard:"5ccedb98b40ac476d0f966de",|name|:"hello",desc:""}} to string

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)