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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:07:32+00:00 2026-05-25T11:07:32+00:00

How does MVC asp.net serialization work for Json object on Controller actions ? For

  • 0

How does MVC asp.net serialization work for Json object on Controller actions ?

For example I have a custom object and if send an ajax request with JSON objects to the server action

public ActionResult(List<CustomObject> abc)
{
   // Object is serialized automatically how MVC is doing it is the question.
}

The reason why I am asking this is that some objects of mine are not properly serialzed and hence loss of data is there , then I have to revert to the old method of string value to serializaiton.

public ActionResult(string abc)
{ 
   JavaScriptSerializer serializer = new JavaScriptSerializer();

   List<CustomObject> lstabc = serializer.Deserialize<List<CustomObject>>(abc);
}

Which I would like to avoid and secondly which are the best libraries for doing JSON object serialization MVC Asp.net ?

  • 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-25T11:07:32+00:00Added an answer on May 25, 2026 at 11:07 am

    The deserialisation is taken care of by the model binder.

    if you are finding it is not working you can create your own custom model binder and register it with the framework – this should mean you can avoid all that deserialisation noise in your controllers.

    There are some links to explanations of this and how to implement a custom model binder in the following SO question:

    ASP.Net MVC Custom Model Binding explanation

    One of the more popular json serialisation libraries is the newtonsoft json.net library – I’ve used it effectively many times:

    http://james.newtonking.com/pages/json-net.aspx

    Good luck!

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

Sidebar

Related Questions

Does ASP.NET MVC's JsonResult use reflection to work out what Json to return ?
Does ASP.NET MVC have anything like the RESTful out-of-the-box features like Ruby on Rails
Does ASP.NET MVC provide a standard validator functionality or do you have to create
In ASP.NET MVC, how does the controller pass information between the model and the
Does anyone have any information about getting the current versions of ASP.NET MVC (Preview
Does anyone have links to tutorials regarding the new IModelBinder in asp.net mvc beta?
Does Telerik has a plan to make ASP.NET MVC's combobox have a feature of
I have put together a small ASP.NET MVC 2 site that does some very
How does the new Microsoft asp.net mvc implementation handle partitioning your application - for
My new ASP.NET MVC Web Application works on my development workstation, but does not

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.