mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #32899 -- Added note about avoiding non-dict objects in JsonResponse docs.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							22fbebc744
						
					
				
				
					commit
					f5669fd7b5
				
			| @@ -1092,6 +1092,10 @@ parameter to ``False``:: | ||||
|  | ||||
| Without passing ``safe=False``, a :exc:`TypeError` will be raised. | ||||
|  | ||||
| Note that an API based on ``dict`` objects is more extensible, flexible, and | ||||
| makes it easier to maintain forwards compatibility. Therefore, you should avoid | ||||
| using non-dict objects in JSON-encoded response. | ||||
|  | ||||
| .. warning:: | ||||
|  | ||||
|     Before the `5th edition of ECMAScript | ||||
|   | ||||
		Reference in New Issue
	
	Block a user