我正在加载 JSON,但我想检查"URL": "",
json 中的是否为空,有时 ID 为空我该如何检查?
if(URL == HOW TO CHECK IF EMPTY?)
{
}
else
{
}
错误:
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 0 beyond bounds for empty array'
*** First throw call stack: