"""Custom tools for managing JSON serialization / deserialization of xonshobjects."""importfunctoolsfromxonsh.toolsimportEnvPath
[docs]@functools.singledispatchdefserialize_xonsh_json(val):"""JSON serializer for xonsh custom data structures. This is only called when another normal JSON types are not found. """returnstr(val)