Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid type in JSON write (__NSCFData)'
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid type in JSON write (__NSCFData)'
JSON只支持一些特定的object, 基本上就是字符串跟数字.
NSCFDate当然不行,但是你可以用一串字符表示一个Date啊, 或者用数字表示Date.