Skip to content

Instantly share code, notes, and snippets.

@chriseidhof
chriseidhof / parsing.swift
Last active Feb 13, 2021
JSON Parsing in Swift
View parsing.swift
// This code accompanies a blog post: http://chris.eidhof.nl/posts/json-parsing-in-swift.html
//
// As of Beta5, the >>= operator is already defined, so I changed it to >>>=
import Foundation
let parsedJSON : [String:AnyObject] = [
"stat": "ok",
"blogs": [