Skip to content

Commit 7f1db28

Browse files
committed
Add release note for #5265
Strict JSON handling
1 parent 2834916 commit 7f1db28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/topics/release-notes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ You can determine your currently installed version using `pip freeze`:
5252

5353
* Removed DjangoFilterBackend inline with deprecation policy. Use `django_filters.rest_framework.FilterSet` and/or `django_filters.rest_framework.DjangoFilterBackend` instead. [#5273][gh5273]
5454
* Don't strip microseconds from `time` when encoding. Makes consistent with `datetime`. **BC Change**: Previously only milliseconds were encoded. [#5440][gh5440]
55+
* Added `STRICT_JSON` setting (default `True`) to raise exception for the extended float values (`nan`, `inf`, `-inf`) accepted by Python's `json` module. **BC Change**: Previously these values would converted to corresponding strings. Set `STRICT_JSON` to `False` to restore the previous behaviour. [#5265][gh5265]
56+
5557

5658

5759
<!-- 3.7.0 -->
@@ -62,6 +64,7 @@ You can determine your currently installed version using `pip freeze`:
6264
[djangodocs-set-timezone]: https://docs.djangoproject.com/en/1.11/topics/i18n/timezones/#default-time-zone-and-current-time-zone
6365
[gh5273]: https://github.com/encode/django-rest-framework/issues/5273
6466
[gh5440]: https://github.com/encode/django-rest-framework/issues/5440
67+
[gh5265]: https://github.com/encode/django-rest-framework/issues/5265
6568

6669

6770
## 3.6.x series

0 commit comments

Comments
 (0)