In older python version this can raise an exception, maybe you can try something like this:

try:
    import json
except:
    import simplejson as json