JSON serialization of nan values in Django REST Framework
nan values cannot be directly serialized to JSON. Django REST Framework uses json.dumps(), which throws an error unless allow_nan=False is passed to it. Ref.: https://chatgpt.com/share/6907c3ca-4a...