Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to parse the below json type in c# windows application
C#
{
    "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"
        }
    ]
}
Posted
Updated 18-Jun-15 1:20am
v2
Comments
Thanks7872 18-Jun-15 7:21am    
Any efforts from your side? Where is the problem? BTW, where is the question?

You should try this[^].


-KR
 
Share this answer
 
And if you don't want to use Json.NET then try this.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900