NSInvalidArgumentException Invalid type in JSON write DemographicsPojo
问题 I am getting a NSInvalidArgumentException when I try to run the following JSONSerialization using Alamofire on swift 3 code. try! JSONSerialization.data(withJSONObject: postData, options: JSONSerialization.WritingOptions.prettyPrinted) On debug, postData is returning the value below. key __NSCFString * "demographicsPojo" 0x000060800005e8a0 value _TtC7MyApp16DemographicsPojo * 0x6080001c5cd0 0x00006080001c5cd0 [0] _TtC7MyApp16DemographicsPojo createdTimeMilliSecs Int64? 1487253369999