Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.6 /
site-packages /
salt /
serializers /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2022-10-11 05:09
__init__.py
723
B
-rw-r--r--
2022-05-16 09:16
configparser.py
2.42
KB
-rw-r--r--
2022-05-16 09:16
json.py
1.65
KB
-rw-r--r--
2022-05-16 09:16
msgpack.py
3.34
KB
-rw-r--r--
2022-05-16 09:16
plist.py
2.07
KB
-rw-r--r--
2022-05-16 09:16
python.py
973
B
-rw-r--r--
2022-05-16 09:16
toml.py
1.43
KB
-rw-r--r--
2022-05-16 09:16
yaml.py
4.89
KB
-rw-r--r--
2022-05-16 09:16
yamlex.py
12.63
KB
-rw-r--r--
2022-05-16 09:16
Save
Rename
""" salt.serializers.json ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Implements JSON serializer. It's just a wrapper around json (or simplejson if available). """ import salt.utils.json from salt.serializers import DeserializationError, SerializationError try: import simplejson as _json except ImportError: import json as _json # pylint: disable=blacklisted-import __all__ = ["deserialize", "serialize", "available"] available = True def deserialize(stream_or_string, **options): """ Deserialize any string or stream like object into a Python data structure. :param stream_or_string: stream or string to deserialize. :param options: options given to lower json/simplejson module. """ try: if not isinstance(stream_or_string, (bytes, str)): return salt.utils.json.load(stream_or_string, _json_module=_json, **options) if isinstance(stream_or_string, bytes): stream_or_string = stream_or_string.decode("utf-8") return salt.utils.json.loads(stream_or_string, _json_module=_json) except Exception as error: # pylint: disable=broad-except raise DeserializationError(error) def serialize(obj, **options): """ Serialize Python data to JSON. :param obj: the data structure to serialize :param options: options given to lower json/simplejson module. """ try: if "fp" in options: return salt.utils.json.dump(obj, _json_module=_json, **options) else: return salt.utils.json.dumps(obj, _json_module=_json, **options) except Exception as error: # pylint: disable=broad-except raise SerializationError(error)