ansible/library/ping
Jeremy Katz ef8ea13495 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)