File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 88
99SBJson's number one feature is chunk-based parsing. An example best sums it up:
1010
11-      SBJsonChunkParser *parser = [[SBJsonChunkParser alloc] initWithBlock:^(id v) { 
11+      SBJsonChunkParser *parser = [[SBJsonChunkParser alloc] initWithBlock:^(id v, BOOL *stop ) { 
1212        NSLog(@"Found: %@", @([v isKindOfClass:[NSArray class]])); 
1313     } errorHandler: ^(NSError* err) { 
1414        NSLog(@"OOPS: %@", err); 
@@ -30,7 +30,7 @@ Sometimes you just get a single mammoth array containing lots of smaller
3030documents. In that case you can get the same effect by setting
3131supportPartialDocuments to YES:
3232
33-      SBJsonChunkParser *parser = [[SBJsonChunkParser alloc] initWithBlock:^(id v) { 
33+      SBJsonChunkParser *parser = [[SBJsonChunkParser alloc] initWithBlock:^(id v, BOOL *stop ) { 
3434        NSLog(@"Found: %@", @([v isKindOfClass:[NSArray class]])); 
3535     } errorHandler: ^(NSError* err) { 
3636        NSLog(@"OOPS: %@", err); 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments