Filterto_jsonand Unicode support
By defaultansible.builtin.to_jsonandansible.builtin.to_nice_jsonwill convert data received to ASCII, so:
will return:
To keep Unicode characters, pass the parameterensure_ascii=Falseto the filter:
To parse multi-document YAML strings, theansible.builtin.from_yaml_allfilter is provided.
Theansible.builtin.from_yaml_allfilter will return a generator of parsed YAML documents.
for example: