Added a function for updaing the weight of a suggestion Json. Not sure if calc/1 handles the format of the Json, so that may need to be changed.