
    _}dg                        d Z ddlZddlZd Z ej        ej                  d             Z ej        ej                  d             Z ej        ej                  d             Z ej        ej                  d             ZdS )a   
Wrapper for the builtin json module that ensures compliance with the JSON spec.

REST framework should always import this wrapper module in order to maintain
spec-compliant encoding/decoding. Support for non-standard features should be
handled by users at the renderer and parser layer.
    Nc                 @    t          dt          |           z             )Nz2Out of range float values are not JSON compliant: )
ValueErrorrepr)os    X/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/rest_framework/utils/json.pystrict_constantr      s    
IDQRGGS
T
TT    c                  P    |                     dd           t          j        | i |S N	allow_nanF)
setdefaultjsondumpargskwargss     r   r   r      s-    
k5)))9d%f%%%r	   c                  P    |                     dd           t          j        | i |S r   )r   r   dumpsr   s     r   r   r      s-    
k5))):t&v&&&r	   c                  Z    |                     dt                     t          j        | i |S Nparse_constant)r   r   r   loadr   s     r   r   r      s.    
&8889d%f%%%r	   c                  Z    |                     dt                     t          j        | i |S r   )r   r   r   loadsr   s     r   r   r   "   s.    
&888:t&v&&&r	   )	__doc__	functoolsr   r   wrapsr   r   r   r    r	   r   <module>r      s         U U U & & &
 ' ' '
 & & &
 ' ' ' ' 'r	   