[
{
"key":"key1",
"value":"key one value",
"description":""
},
{
"key":"key2",
"value":"key two value",
"description":""
},
{
"key":"key3",
"value":"key three value",
"description":""
},
{
"key":"key4",
"value":"key four value",
"description":""
},
{
"key":"key5",
"value":"key five value",
"description":""
}
]
This above is my an example json file I'm working with, I'm putting it into an JsonArray like this
BufferedReader reader = Files.newBufferedReader(file,
Charset.defaultCharset());
JsonReader jsonReader = Json.createReader(reader);
JsonArray array = jsonReader.readArray();
And My issue is I want to access the JsonArray and change the value part of each json element but is unable to do this. the collection doesn't seem to offer anyways to replace values of any json element. Do you know anyways I could achieve what I'm set to to do?? PS: also open to suggestions on using an alternative collection, but please educate me on why should I choose said collection.