friend request bug fix 2

using json.dumps to get string from dict.