You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default value of the $data parameter for JsonResponse is null, but when it is set to null, the actual value sent in the response is in fact {}. This is problematic because it makes it impossible to send a literal value of null, which is valid JSON. The distinction is important, because in javascript {} evaluates truthy and null evaluates falsy.