Checking `isValidJSONObject:` prior to creating JSON for an object.
Added note to `customData` API docs. All `customData` objects must be instances of NSString, NSNumber, NSArray, NSDictionary, or NSNull.