I figured out a solution. I exported my current bookmarks as an HTML file, and then restored my bookmarks using the JSON file, thus overwriting my existing bookmarks. Then I was able to import the HTML file and merge the two lots of bookmarks together.