Comment créer un NSDictionary en Objective-C?

Je veux créer un NSDictionary comme ce type:

"zones": 
{
    {
        "zoneId": "1",
        "locations": 
        {
            {
                "locId": "1",
                "locZoneId": "1",
                "locLatitude": "33.68506785633641",
                "locLongitude": "72.97488212585449"
            },
            {
                "locId": 2”,
                "locZoneId": "1",
                "locLatitude": "33.68506785633641",
                "locLongitude": "72.97488212585449"
            },
            {
                "locId": 3”,
                "locZoneId": "1",
                "locLatitude": "33.68506785633641",
                "locLongitude": "72.97488212585449"
            },
        }
    }
}

Mais je ne sais pas comment les créer.

  • Qu'aimeriez-vous accomplir? Voulez-vous désérialiser une structure comme ceci?
InformationsquelleAutor vky | 2017-01-26