Skip to content

Commit

Permalink
Added a new toJSON cast case
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanhimmelman committed Dec 17, 2015
1 parent e42fac8 commit cd6e4a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ObjectMapper/Core/ToJSON.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ internal final class ToJSON {
_setValue(x)
} else if let x = field as? Array<AnyObject> {
_setValue(x)
} else if let x = field as? Array<Dictionary<String, AnyObject>> {
_setValue(x)
} else if let x = field as? Dictionary<String, NSNumber> { // Dictionaries
_setValue(x)
} else if let x = field as? Dictionary<String, Bool> {
Expand Down

0 comments on commit cd6e4a7

Please sign in to comment.