gpt4 book ai didi

java - 如何从 JSON 响应中提取 boolean 值?

转载 作者:行者123 更新时间:2023-12-02 00:59:03 28 4
gpt4 key购买 nike

 "name": "items",
"accept": "application/json",
"start": -1,
"count": 1,
"items": [
{
"filterId": "1cb77df1-b580-4576-a956-0f5ba36340b7",
"label": "newTest4",
"description": "new Filter dsec",
"filterExpression": "ssl=true",
"createdUser": "fsduser",
"modifiedUser": "fsduser",
"createdDt": 1585565784446,
"modifiedDt": 1585565784446,
"archived": false,
"userCreatedFilter": true,
"tags": [
"newTest4"
]
}

在上面的响应中,尝试提取 boolean 值“userCreatedFilter”,但出现 java.lang 类错误

最佳答案

YourJSON.item.userCreatedFilter

关于java - 如何从 JSON 响应中提取 boolean 值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60933026/

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