
    h'                    H    S r SSKJr  SSKrSSKJr  \rS	S jrS
S jrSS/r	g)a  JSON serialize to/from utf8 bytes

.. versionchanged:: 22.2
    Remove optional imports of different JSON implementations.
    Now that we require recent Python, unconditionally use the standard library.
    Custom JSON libraries can be used via custom serialization functions.
    )annotationsN)Anyc                N    [         R                  " U 40 UD6R                  S5      $ )zfSerialize object to JSON bytes (utf-8).

Keyword arguments are passed along to :py:func:`json.dumps`.
utf8)jsondumpsencode)okwargss     dC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\zmq/utils/jsonapi.pyr   r      s#    
 ::a"6"))&11    c                |    [        U [        5      (       a  U R                  S5      n [        R                  " U 40 UD6$ )zcLoad object from JSON bytes (utf-8).

Keyword arguments are passed along to :py:func:`json.loads`.
r   )
isinstancebytesdecoder   loads)sr   s     r   r   r      s3    
 !UHHV::a"6""r   r   r   )r
   r   returnr   )r   zbytes | strr   zdict | list | str | int | float)
__doc__
__future__r   r   typingr   jsonmodr   r   __all__ r   r   <module>r      s2    #   2# G
r   