salt.serializers.json
salt.serializers.json
Implements JSON serializer.
It's just a wrapper around json (or simplejson if available).
-
Deserialize any string or stream like object into a Python data structure.
- Parameters
-
stream_or_string -- stream or string to deserialize.
options -- options given to lower json/simplejson module.
salt.serializers.json.deserialize(stream_or_string, **options)
-
Serialize Python data to JSON.
- Parameters
-
obj -- the data structure to serialize
options -- options given to lower json/simplejson module.
salt.serializers.json.serialize(obj, **options)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/serializers/all/salt.serializers.json.html