If you're using Python 2.6 or later, use the built-in json library. Otherwise, use simplejson which has exactly the same interface.
You can do this adaptively without having to check the Python version yourself, using code such as the following:
try:
import json
except ImportError:
import simplejson as json
Then, use json.loads()
or whatever as appropriate.