【发布时间】:2018-11-15 17:25:54
【问题描述】:
我试图弄清楚如何解析下面的 JSON 并从中获取 "text": "lawyer"。我看到它有很多分支。即数组和对象。我想在 C# 中执行此操作。这是 JSON:
{
"status": "Succeeded",
"succeeded": true,
"failed": false,
"finished": true,
"recognitionResult": {
"lines": [{
"boundingBox": [140, 289, 818, 294, 816, 342, 138, 340],
"text": "General information Com",
"words": [{
"boundingBox": [106, 290, 363, 291, 363, 343, 106, 343],
"text": "General"
}, {
"boundingBox": [323, 291, 659, 291, 659, 344, 323, 343],
"text": "lawyer"
}, {
"boundingBox": [665, 291, 790, 291, 790, 344, 665, 344],
"text": "Com"
}]
}]
}
}
【问题讨论】:
-
嗨 Karanvir - 这些并不是真正的“重复”,因为每个部分都有自己定义的值,每个部分都可以包含这些值。
words有自己的boundingBox和text,但lines也有,还包含words。