{"id":360,"date":"2012-03-19T02:13:07","date_gmt":"2012-03-19T02:13:07","guid":{"rendered":"http:\/\/phyline.com\/blog\/?p=360"},"modified":"2015-08-01T15:16:50","modified_gmt":"2015-08-01T15:16:50","slug":"nsdictionary-content","status":"publish","type":"post","link":"http:\/\/sophyonline.com\/blog\/2012\/03\/nsdictionary-content\/","title":{"rendered":"NSDictionary Content"},"content":{"rendered":"<p>Gracias al \u00a0post de <a href=\"http:\/\/nickwaynik.com\/\">Nick Waynick<\/a>, record\u00e9 como se puede hacer un NSLog del contenido de un diccionario JSON (aunque tambi\u00e9n deber\u00eda funcionar para cualquier diccionario). Es el cl\u00e1sico c\u00f3digo sencillo que olvidas cuando lo quieres usar. A ver si escribi\u00e9ndolo aqu\u00ed no lo olvido.<\/p>\n<pre>NSString *key;\r\nfor(key in jsonDictionary){\r\n  NSLog(@\"Key: %@, Value %@\", key, [jsonDictionary objectForKey: key]);\r\n}\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Gracias al \u00a0post de Nick Waynick, record\u00e9 como se puede hacer un NSLog del contenido de un diccionario JSON (aunque tambi\u00e9n deber\u00eda funcionar para cualquier diccionario). Es el cl\u00e1sico c\u00f3digo sencillo que olvidas cuando lo quieres usar. A ver si escribi\u00e9ndolo aqu\u00ed no lo olvido. NSString *key; for(key in jsonDictionary){ NSLog(@&#8221;Key: %@, Value %@&#8221;, key, <a class=\"read-more\" href=\"http:\/\/sophyonline.com\/blog\/2012\/03\/nsdictionary-content\/\">&hellip;&nbsp;<span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"categories":[],"tags":[],"class_list":["post-360","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/posts\/360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/comments?post=360"}],"version-history":[{"count":5,"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/posts\/360\/revisions"}],"predecessor-version":[{"id":653,"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/posts\/360\/revisions\/653"}],"wp:attachment":[{"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/media?parent=360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/categories?post=360"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/tags?post=360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}