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 8885943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:26:11+00:00 2026-06-14T21:26:11+00:00

Im using Jackson to convert a POJO into a JSON to store in the

  • 0

Im using Jackson to convert a POJO into a JSON to store in the DB. However I have a getter that I want to ignore. I have see a lot of info relating to @JsonIgnoreProperties but I can’t seem to make any progress with it. I basically want the equivalent of @Transient.

Basic usecase (I want to ignore the InternationalNumber):

public class PhoneNumber {

private String country;
private String number;

public PhoneNumber() {}

public String getCountry() {
    return country;
}

public String getLocalNumber() {
    return localNumber;
}

public String getInternationalNumber() {
    String result = "Not Available";
    if (country != null && localNumber != null) {
    result = new PhoneNumberHandler().internationalFormat(
            localNumber, WorldCountries.countryToIso2Code(country));
    }
    return result;
}

}
  • 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-06-14T21:26:12+00:00Added an answer on June 14, 2026 at 9:26 pm

    That would be @JsonIgnore on getter method.

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

Sidebar

Related Questions

I have a Mapping Problem using jackson library to convert a Json API callback
I have a class that needs to be deserialized from JSON using Jackson. The
How would you deserialize a JSON document to a POJO using Jackson if you
I'm trying to read a legacy JSON code using Jackson 2.0-RC3, however I'm stuck
Using Jackson I can able to convert the object to JSON @RequestMapping(value=getMessage.test, headers =
I am using JSON Jackson to convert from POJOs to JSON. I am using
Using Jackson, how can I have JSON serialized/deserialized by one application using one set
I have question related to bean to json serialziation/deserialization using Jackson. Previously I have
I'm using spring 3.1.2 and I need to parse a json object into POJO.
I am using Jackson parser in Java, and I want to generate JSON string

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.