{"id":1435,"date":"2016-04-18T14:33:42","date_gmt":"2016-04-18T06:33:42","guid":{"rendered":"http:\/\/magicalbits.net\/?p=1435"},"modified":"2016-04-18T14:33:42","modified_gmt":"2016-04-18T06:33:42","slug":"strongly-typed-get-and-post-calls-with-nsurlsession-grok-swift","status":"publish","type":"post","link":"https:\/\/magicalbits.net\/?p=1435","title":{"rendered":"Strongly-Typed GET and POST Calls with NSURLSession &#8211; Grok Swift"},"content":{"rendered":"<blockquote><p>Previously we used NSURLSession data tasks to make some REST requests to a web service. Today let\u2019s clean that up by building a higher layer of abstraction by mapping the JSON to a strongly-typed class.<\/p><\/blockquote>\n<p>Source: <em><a href=\"http:\/\/grokswift.com\/strongly-typed-api-calls-nsurlsession\">Strongly-Typed GET and POST Calls with NSURLSession &#8211; Grok Swift<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Previously we used NSURLSession data tasks to make some REST requests to a web service. Today let\u2019s clean that up by building a higher layer of abstraction by mapping the JSON to a strongly-typed class. Source: Strongly-Typed GET and POST Calls with NSURLSession &#8211; Grok Swift<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1435","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/1435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1435"}],"version-history":[{"count":1,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/1435\/revisions"}],"predecessor-version":[{"id":1436,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/1435\/revisions\/1436"}],"wp:attachment":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}