ansible/ping
Jeremy Katz 2a3a0d60cd Fall back to standalone simplejson module
CentOS5 has python 2.4 which doesn't have a built-in json
module
2012-02-23 20:52:53 -05:00

8 lines
105 B
Python

#!/usr/bin/python
try:
import json
except ImportError:
import simplejson as json
print json.dumps(1)