Array/NSMutableArray 的最大限制是多少?我没有在日志中获得完整的 JSON 数据

What is max limit of an Array/NSMutableArray? I am not getting full JSON data in log

这里是 JSON 文件

https://drive.google.com/file/d/1WOE6HEylc5FnAo9NekMdwPU3xEuGUgMg/view?usp=sharing

我正在获取此 JSON 数据,我正在尝试打印 JSON 但它没有打印完整 JSON.

在JSON里面,有一个key"file",里面是base64编码的数据。它的价值非常大。

我正在尝试打印整个 JSON 或仅打印键 "file" 的值,但我得到的数据不完整。

我不知道,为什么我得到一半数据。

这是我写的代码,

NSMutableArray *mutableArray=[json copy];
NSDictionary *threadDict=[mutableArray objectAtIndex:indexPath.row];

NSLog(@"Ticket Thread Dict is : %@",threadDict);// It is not printing full json

NSMutableArray *attachmentArray=[[NSMutableArray alloc]init];
attachmentArray  =[threadDict objectForKey:@"attach"];
NSDictionary *attachDictionary=[attachmentArray objectAtIndex:indexPath.row];
NSString *fileData = [NSString stringWithFormat:@"%@", [attachDictionary objectForKey:@"file"]];
NSLog(@"Fina Name is : %@",fileData); // this is not printing full data

这与你Array/NSMutableArray的大小无关。早些时候我遇到了同样的问题,NSLog 无法完全记录我的 base64 字符串,所以后来我使用了

printf("base64 String %s", [jsonString UTF8String]);

尝试用上面的代码代替NSLog。它会工作,你可以看到你的日志。