Use to_nice_json as opposed to to_nice_yaml
Use to_nice_json as opposed to to_nice_yaml

See https://gist.github.com/lakshmi-kannan/0f5f073311a40d209d3e19c7cab3e864

StackStorm/ansible-st2,armab/ansible-st2