本文介绍了如何在c#windows应用程序中解析下面的json类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 如何在c#windows应用程序中解析下面的json类型 { model_id: 91d35bc1-bb3e-4fe7-880d- b75cc4f2f9de, name: Penelope, created: 2014-01-01 10:10, modality: face, nb_faces: 4 , faces :[{ face_id: 884e8f07-2b75-48b2-9bb5-df4276fb84ab, x: 117 , y: 137 , w: 127 , h: 127 , image_url: / api / image / 0472cd5d-65ea- 4891-955c-3d84eb61a7f6, 校验和: 5c91bfb6ee354345cbfc349bcb0c86ee },{ face_id: e483bcee-b555-413d-906d-19a2bbf1d449, x: 154 , y : 137 , w: 123 , h: 123 , image_url: / api / image / 57 d620f3-e6d7-45d8-864e-39d1cbd76651, 校验和 : f7cfe0f898bd35972199eb03bfbdcfe9 },{ face_id: fbeb03d4-86a9-4645-837d-c4cc9ad44341, x : 106 , y: 106 , w : 102 , h: 102 , image_url: / api / image / a8995eb3-13ef-4e36-bec8-3a6e27ed8c6a, 校验和: 6256026cff7e4d7b16523d5e4fe733c3 },{ face_id: 4a18acd2-0a1c-4334-bb99-e56c6c065b77, x : 130 , y: 68 , w: 76 , h: 76 , image_url: / api / image / 41b07cc1-88cc-4514-a1aa-ca0cf3c3d4f9, 校验和: bd2fdfb22d29fae829b97a0395b84753 } ] } 解决方案 你应该试试这 [ ^ ]。 -KR 如果您不想使用Json.NET,请尝试此 How to parse the below json type in c# windows application{ "model_id" : "91d35bc1-bb3e-4fe7-880d-b75cc4f2f9de", "name" : "Penelope", "created": "2014-01-01 10:10", "modality" : "face", "nb_faces" : 4, "faces" : [{ "face_id" : "884e8f07-2b75-48b2-9bb5-df4276fb84ab", "x" : 117, "y" : 137, "w" : 127, "h" : 127, "image_url" : "/api/image/0472cd5d-65ea-4891-955c-3d84eb61a7f6", "checksum" : "5c91bfb6ee354345cbfc349bcb0c86ee" }, { "face_id" : "e483bcee-b555-413d-906d-19a2bbf1d449", "x" : 154, "y" : 137, "w" : 123, "h" : 123, "image_url" : "/api/image/57d620f3-e6d7-45d8-864e-39d1cbd76651", "checksum" : "f7cfe0f898bd35972199eb03bfbdcfe9" }, { "face_id" : "fbeb03d4-86a9-4645-837d-c4cc9ad44341", "x" : 106, "y" : 106, "w" : 102, "h" : 102, "image_url" : "/api/image/a8995eb3-13ef-4e36-bec8-3a6e27ed8c6a", "checksum" : "6256026cff7e4d7b16523d5e4fe733c3" }, { "face_id" : "4a18acd2-0a1c-4334-bb99-e56c6c065b77", "x" : 130, "y" : 68, "w" : 76, "h" : 76, "image_url" : "/api/image/41b07cc1-88cc-4514-a1aa-ca0cf3c3d4f9", "checksum" : "bd2fdfb22d29fae829b97a0395b84753" } ]} 解决方案 You should try this[^].-KRAnd if you don't want to use Json.NET then try this. 这篇关于如何在c#windows应用程序中解析下面的json类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 11-03 08:29