Have an idea in JsonParser: return lists of countries, continents, etc. But how to insert these items?

The visitor pattern does not seem to work.