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

  • SEARCH
  • Home
  • 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 8531751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:33:30+00:00 2026-06-11T09:33:30+00:00

I need to to deserialize json property (field) absolutely my way using org.codehaus.jackson .

  • 0

I need to to deserialize json property (field) absolutely my way using org.codehaus.jackson. I know about custom @JsonDeserializer option, but this is only useful, if you need to deserialize given values of array. I need to deserialize values of array and array itself. To be concrete I need to deserialize ForreignCollection from ORMLite, so I should be able to programatically create ForeignCollectionField and add values into it.

@JsonProperty
@ForeignCollectionField
private ForeignCollection<PerformerLocalized> localized;

Are there any ideas, how to manage it?

  • 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-11T09:33:32+00:00Added an answer on June 11, 2026 at 9:33 am

    @JsonDeserialize can be used BOTH container AND values, like so:

    @JsonDeserialize(using=MyContainerDeserializer.class, // this would apply to Collection
       contentUsing=ValueDeserializer.class) // and this to value type
    

    note that normally Collection deserializers do not deal with values, but just delegate it (to make things nicely modular). But you can obviously choose differently with your deserializer; either delegate or directly deal with. If you want to delegate, you probably want to implement ContextualDeserializer interface, to be able to resolve delegatee deserializers.

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

Sidebar

Related Questions

I need to serialize and deserialize an object that contains an System.Uri property using
JSON is created in Java using Jersey's JAXB serializer. I need to deserialize it
I need to deserialize a GeoJSON JSON object with the Jackson library. In this
I need to deserialize JSON string to custom complex objects. For example lets say
I have some JSON that I need to deserialize so I'm using JavaScriptSerializer.DeserializeObject like:
im using jackson to deserialize some Json. I am reading through a large json
Hi I need parse and deserialize pseudo JSON string. Input data: {aBubbleData[ 'jaja2581' ]={
The answer to just about every single question about using C# with JSON seems
I'm using JSON.Net to try and deserialize some survey responses from SurveyGizmo. Here's a
I need to deserialize some JavaScript object represented in JSON to an appropriate C#

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.