def require_json():
<EOL>try:<EOL><INDENT>import json <EOL>return json<EOL><DEDENT>except ImportError:<EOL><INDENT>try:<EOL><INDENT>import simplejson <EOL>return simplejson<EOL><DEDENT>except ImportError as exc:<EOL><INDENT>raise ImportError("""<STR_LIT>""" % (exc,))<EOL><DEDENT><DEDENT>
Load the best available json library on demand.