🐛 fixed callback-related issue (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
This commit is contained in:
		
							parent
							
								
									b5c54b41fd
								
							
						
					
					
						commit
						e33b31e6aa
					
				
					 26 changed files with 97 additions and 18880 deletions
				
			
		| 
						 | 
				
			
			@ -572,6 +572,13 @@ class json_sax_dom_callback_parser
 | 
			
		|||
        }
 | 
			
		||||
        else
 | 
			
		||||
        {
 | 
			
		||||
            // skip this value if we already decided to skip the parent
 | 
			
		||||
            // (https://github.com/nlohmann/json/issues/971#issuecomment-413678360)
 | 
			
		||||
            if (not ref_stack.back())
 | 
			
		||||
            {
 | 
			
		||||
                return {false, nullptr};
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            assert(ref_stack.back()->is_array() or ref_stack.back()->is_object());
 | 
			
		||||
            if (ref_stack.back()->is_array())
 | 
			
		||||
            {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue