
    Nwg                     .   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y)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                 0    t        dt        |       z         )Nz2Out of range float values are not JSON compliant: )
ValueErrorrepr)os    P/var/www/horilla/myenv/lib/python3.12/site-packages/rest_framework/utils/json.pystrict_constantr      s    
IDQRGS
TT    c                  P    |j                  dd       t        j                  | i |S N	allow_nanF)
setdefaultjsondumpargskwargss     r   r   r      s&    
k5)99d%f%%r	   c                  P    |j                  dd       t        j                  | i |S r   )r   r   dumpsr   s     r   r   r      s&    
k5)::t&v&&r	   c                  X    |j                  dt               t        j                  | i |S Nparse_constant)r   r   r   loadr   s     r   r   r      s'    
&899d%f%%r	   c                  X    |j                  dt               t        j                  | i |S r   )r   r   r   loadsr   s     r   r   r   "   s'    
&8::t&v&&r	   )	__doc__	functoolsr   r   wrapsr   r   r   r    r	   r   <module>r      s     U & &
 ' '
 & &
 ' 'r	   