Convert dictionary to json string

before saving group profile data to database