jsonデータについて初心者です。
json デシリアライズ はネットサーフィンすると少し出てきますが
深い階層のものがわかりずらく
classにする部分などが省略されていたり
シリアライズと一緒に説明されていてわかりずく困っています。
下のデータのcaptions中項目のtextやconfidence値をとりたいのですが
どうやって読み解いたら良いかわかりません。
Newtonsoft.Json
System.Runtime.Serialization
をつかったりしているのでが…
アドバイスよろしくお願いします。
{ "categories": [ { "name": "abstract_rect", "score": 0.265625 }, { "name": "others_", "score": 0.0390625 } ], "description": { "tags": [ "food", "table", "indoor", "plate", "wooden", "sitting", "small", "filled", "items", "top", "white", "different", "bowl", "cake", "holding", "fruit", "board" ], "captions": [ { "text": "a plate of food on a table", "confidence": 0.87181982919983547 } ] }, "requestId": "01d523a8-128b-4efa-b6d6-6b8fc8c2765c", "metadata": { "width": 320, "height": 240, "format": "Jpeg" }, "color": { "dominantColorForeground": "White", "dominantColorBackground": "Brown", "dominantColors": [ "Brown", "White" ], "accentColor": "B1481A", "isBWImg": false } }
回答2件
あなたの回答
tips
プレビュー