Commit e69299f0 by Toshio Kuratomi

iRemove pretty print to_nice_json test -- the test fails on python2.6

without simplejson
parent 8bcd2b8f
This is a test of various filter plugins found in Ansible (ex: core.py), and
not so much a test of the core filters in Jinja2.
Dumping a nested structure to JSON
[
"this is a list element",
{
"this": "is a hash element in a list",
"warp": 9,
"where": "endor"
}
]
Dumping the same structure to YAML
- this is a list element
......
This is a test of various filter plugins found in Ansible (ex: core.py), and
not so much a test of the core filters in Jinja2.
Dumping a nested structure to JSON
{{ some_structure | to_nice_json }}
Dumping the same structure to YAML
{{ some_structure | to_nice_yaml }}
......
Provoke a python2.6 json bug
{{ hostvars | to_nice_json }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment