This implementation reads the html dom and store all the tags and attributes recursively in a json object using javascript.