Parses html to json format