Skip to content

Commit

Permalink
Merge pull request bignerdranch#236 from radex/patch-1
Browse files Browse the repository at this point in the history
Make JSONSerialization.makeJSON public
  • Loading branch information
mdmathias authored Jan 19, 2017
2 parents 7e85f22 + a1ecff0 commit 13d104d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/JSONParsing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ extension JSONSerialization: JSONParserType {
/// Makes a `JSON` object by matching its argument to a case in the `JSON` enum.
/// - parameter object: The instance of `Any` returned from serializing the JSON.
/// - returns: An instance of `JSON` matching the JSON given to the function.
private static func makeJSON(with object: Any) -> JSON {
public static func makeJSON(with object: Any) -> JSON {
switch object {
case let n as NSNumber:
let numberType = CFNumberGetType(n)
Expand Down

0 comments on commit 13d104d

Please sign in to comment.