iOS JSON Error: NSDebugDescription=Garbage at end
问题 This is a really weird bug, when grabbing JSON from my server (which is produced via PHP), I get this error when calling: json = [NSJSONSerialization JSONObjectWithData:kivaData options:kNilOptions error:&jsonError]; JSON Error: Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)" (Garbage at end.) UserInfo=0x178467d00 {NSDebugDescription=Garbage at end.} My (NSData* kivaData) grabs everything perfectly, but it cant parse the JSON. I have run my