Parsing JSON using GSON within a Maven project in IntelliJ IDEA

Опубликовано: 09 Октябрь 2024
на канале: Paul Gestwicki
25,314
252

This video is technology soup: I show how to create a Maven project within IntelliJ IDEA, bring in the GSON library, and use that to parse JSON. Of course, I'll be using JUnit and TDD, but that didn't fit into the title.

Note that this example is interesting because we cannot conveniently use GSON's data binding, which is a feature shown in most GSON tutorials. The particular data source I'm using---revision data from Wikipedia---uses generated property names.