JSON Level Loader Technical - nmerris/Mini-Arknoid-libgdx-game GitHub Wiki
I decided to use Google's GSON to load level data. This allowed me to easily convert JSON file data to plain old Java objects... very cool! Each Brick is modeled by a single line in the file.. you just need to specify it's position, toughness, bonus item (or not), etc. My LevelLoader class takes care of the rest.
Below: JSON file contents for test level 999
Below: my Brick class