Include and remove elements of a Json with the Gson (Java)

2

I'm using the Gson library in Java, I have the following structure in a json file:

{"idAluno":4, "nomeAluno":"Teste da Silva", "listaDeTurmas":[1,2,4]}

Is it possible, with this library, to change the "list ofTurmas" entry to include / remove values from it? For example, add the value 3 or remove the value 4. Or is there some other Json manipulation library that would give me a function for this?

    
asked by anonymous 07.04.2018 / 22:26

0 answers