HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/zmq/utils/__pycache__/jsonapi.cpython-310.pyc
o

�N�g��	@sndZddlZddlmZmZmZmZeZdedefdd�Z	deee
fdeeee
eeffd	d
�Z
dd
gZdS)aJSON 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.
�N)�Any�Dict�List�Union�o�returncKstj|fi|���d�S)znSerialize object to JSON bytes (utf-8).

    Keyword arguments are passed along to :py:func:`json.dumps`.
    �utf8)�json�dumps�encode)r�kwargs�r
�E/opt/saltstack/salt/lib/python3.10/site-packages/zmq/utils/jsonapi.pyr
sr
�scKs&t|t�r
|�d�}tj|fi|��S)zkLoad object from JSON bytes (utf-8).

    Keyword arguments are passed along to :py:func:`json.loads`.
    r)�
isinstance�bytes�decoder	�loads)rrr
r
rrs

r)�__doc__r	�typingrrrrZjsonmodrr
�str�int�floatr�__all__r
r
r
r�<module>s(