To Convert dictionary to JSON you can use the json.dumps() which converts a dictionary to str object, not a json(dict) object! so you have to load your str into a dict to use it by using json.loads() method.
Below is the code which will help you understand it more:
import json r = {'is_claimed': 'True', 'rating': 3.5}
r = json.dumps(r)
loaded_r = json.loads(r)
Loaded_r['rating']
type(r)
str type(loaded_r)