Extract data from HTML using a JSON template