Good evening.
For the first time I'm manipulating a Json file with Java, because many colleagues have always told me that it is very easy to manipulate data, especially with the Google library (Gson).
Well, a question that came up to me is this, how can I access a key within a file?
More or less like this:
I've written an object in a single column like this:
{
"fileName":"090808_072340.jpg",
"fileSize":"337 Kb",
"fileType":"image/jpeg",
"fileTmpPath":"/tmp/joocebox-img/destination/manolo/090808_072340.jpg"
}
In this case, I wanted to work with the key " fileTmpPath ".
Can I make a parser inside this file with some Gson method? Or at the time deserializar I have to have a bean with the fields and Gson takes care of it for me? Is it possible to get a getFileTmpPath () for example?
Thank you and a hug to everyone!