Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6046901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:17:32+00:00 2026-05-23T07:17:32+00:00

We are storing user preferences for a Java app in a JSON file using

  • 0

We are storing user preferences for a Java app in a JSON file using Jackson. As we continue to develop the app, we will be adding preferences, renaming preferences, and removing obsolete preferences. When the user upgrades the app to the next version the file format will likely have changed. This causes Jackson to throw an exception and the file can’t be parsed even though the format is 90% the same. How should I handle upgrading the file format?

I was thinking about using JSONT to upgrade the file as well as writing my own Jackson stream parser which is more lenient than the full binding parser, just in case something goes wrong with the JSONT upgrade. What have other people done to handle upgrading file formats?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:17:33+00:00Added an answer on May 23, 2026 at 7:17 am

    Jackson doesn’t currently have any built-in JSON versioning support, like Gson does. Jackson issue 108 was logged over two years ago to address such a possible enhancement. Please don’t hesitate to vote for its implementation. (I just did.)

    The approach I would take would be to implement a custom JSON versioning support solution, similar to how Gson does it. (This one feature alone probably wouldn’t be enough for me to switch to Gson.) Then logic in your Java bean processing could be relatively straightforward regarding handling different versions either post-deserialization, or during custom deserialization.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm storing some additional per-user information using the AUTH_PROFILE_MODULE . We can access the
I've seen a few questions on here about storing user preferences, but they seem
Currently, we're storing the user's HTTP_REFERER so we can redirect the user back to
How do I get the reference to a folder for storing per-user-per-application settings when
If I am storing the Subversion user names and passwords for repository access in
How can I go about storing a vb.net user defined object in a sql
Im using smarty and mysql_real_escape_string() for user input, and when I insert some code
I need to determine if a user-supplied string is a valid file path (i.e.,
I'm new to using the PreferenceActivity. Task: Allow user to choose the program layout
I'm trying to get the following code working: string url = String.Format(@SOMEURL); string user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.