我有一个 JSON 文件,我需要捕获特定的键值才能在我的 JSON 代码中执行此操作
{
"uri": "https://wmg.nfa.futures.org/news/EnforceRegActions5imple.aspx",
"children": [
{
"uri": "https://www.nfa.futures.ortnews/EnforceRegActions5imple.aspx#145View%209%28e1233a13%401",
"children": [
{
"uri": "httpsghomm nfa futures org/news/EnforceReeActions5imple aspx#114Rule4%28e6ea03f2%400%40145View%209%28e1233a13%401",
"title": "Compliance Rules : Rule 2-2 : Rule",
"type": "Enforcement and Registration Actions : Rule",
"publishedDate": "2019-08-15",
"cachedDateTimeOffset": "0001-01-01700:00:00+00:00",
},
{
"uri": "httos./Pv'm nfa futures ore/news/EnforceReioctions5imple
aspx#114Rule4%28e6ea03f2%401%40145view%209%28e1233a13%401",
"title": "Compliance Rules : Rule 2-4 : Rule",
"type": "Enforcement and Registration Actions : Rule",
"publishedDate": "2019-08-15",
"cachedDateTimeOffset": "0001-01-01T00:00:00+00:00",
}
]
当我调试时,我可以看到所有值,但无法选择特定的值,我也尝试过 SElECTED Token 但没有运气。
我的问题是这有两个孩子 json 一个有 HTML 键另一个没有我需要获取第一个孩子我需要第二个孩子我需要的 HTML 值但是当我嵌套循环时它总是选择第一个节点如何解决这个问题
慕后森
红糖糍粑
森栏
相关分类