Graphics Programs Reference
In-Depth Information
{
"name":"Aaron Hillegass",
"age":87
}
]
When this JSON is parsed, you will get an NSArray containing two NSDictionary
instances. Each NSDictionary will have two key-value pairs. (One of those key-value
pairs is going to get me fired...)
JSON data is really good at describing a tree of objects - that is, an object that has refer-
ences to more objects, and each of those have references to more objects. This means
when you deserialize JSON data, you are left with a lot of interconnected objects. (We call
these interconnected objects an object graph .) The only real requirement of JSON - other
than staying within the syntax - is that the top-level entry be either an object or an array.
Thus, you will only ever get back an NSDictionary or NSArray from
NSJSONSerialization .
Search WWH ::




Custom Search