jackson json question
suppose i have json array stored inside the file in the projects variable.
how can i update it properly without rewriting it?
18 Replies
⌛
This post has been reserved for your question.
Hey @Koblížkáč! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
You can not update contents of a file without rewriting the contents of a file.
Vice versa, if you do not change the file you do not update the file.
well then, what would be the recommended way to do that with jackson? how can i just update it
Is it a static file?
static file?
I mean: Are you sure the file exists?
yes
Try
@Peter Rader thanks it works, any idea if
Path
can be converted from string with jackson?If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
i want to deserialize some json to this object:
and im doing it like this:
Hm, is this a different question?
well its unrelated to my first question
do i need to make new thread
I mean, Jackson could serialize
Path
just fine. I did it just now.where the hell is the problem then
No idea, this code works for me:
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.