add convert to json function, tried to add the string retrieved from html(), didn't work