o
    h                     @   sp   d Z ddlZddlZdd Zeejdd Zeejdd Zeejd	d
 Zeejd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                 C   s   t dt|  )Nz2Out of range float values are not JSON compliant: )
ValueErrorrepr)o r   [/var/www/html/optinet_system/venv/lib/python3.10/site-packages/rest_framework/utils/json.pystrict_constant   s   r   c                  O      | dd tj| i |S N	allow_nanF)
setdefaultjsondumpargskwargsr   r   r   r         r   c                  O   r   r	   )r   r   dumpsr   r   r   r   r      r   r   c                  O      | dt tj| i |S Nparse_constant)r   r   r   loadr   r   r   r   r      r   r   c                  O   r   r   )r   r   r   loadsr   r   r   r   r   "   r   r   )	__doc__	functoolsr   r   wrapsr   r   r   r   r   r   r   r   <module>   s    






