convert repeated html blocks to json easily