Skip to content

Instantly share code, notes, and snippets.

@vijaytholpadi
Forked from b3ll/GottaGoFastJS.swift
Created May 14, 2016 11:59
Show Gist options
  • Save vijaytholpadi/ba220f95e3ec66e8b94c19b18ea514d1 to your computer and use it in GitHub Desktop.
Save vijaytholpadi/ba220f95e3ec66e8b94c19b18ea514d1 to your computer and use it in GitHub Desktop.
Blazingly-Fast JSON Parser written in Swift
import Foundation
public typealias JSON = AnyObject
public func JSONWithData(data: NSData) -> JSON? {
do {
let j = try NSJSONSerialization.JSONObjectWithData(data, options: [])
return j
} catch _ {
return nil
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment