JSON with array of objects to object

.

You need an class that represents a Command, and BombBuffer.commands needs to be a Command[ ] not a generic object[ ].

Don’t forget to make the Command class [Serializable] as well.

1 Like