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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:56:10+00:00 2026-05-31T20:56:10+00:00

My C# web method uses JavaScriptSerializer to return a JSON object in string format

  • 0

My C# web method uses JavaScriptSerializer to return a JSON object in string format called jSONstring. My javascript then uses jquery.deserialize and does the following:

$("#form").deserialize(JSON.parse(jSONstring));

This seems to work fine except when mapping to an array of elements.

My HTML is as follows:

<input name="AccountID" value="" />
<input name="Account[0].name" value="" />
<input name="Account[1].name" value="" />
<input name="Account[2].name" value="" />

The JSON object returned from the server looks like:

'{"AccountID": 123, "Account":[{"name": "AccountName1"},{"name": "AccountName2"},{"name": "AccountName3"}]}'

After calling deserialize the AccountID is updated but the account names are never updated to AccountName1, AccountName2, AccountName3.

I tried renaming my input elements to the following and it still doesn’t work:

<input name="Account.name" value="" />
<input name="Account.name" value="" />
<input name="Account.name" value="" />

What am I doing wrong?

  • 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-31T20:56:11+00:00Added an answer on May 31, 2026 at 8:56 pm

    That format is not supported by the plugin, it only supports data generated from jQuery.serialize, jQuery.serializeArray and jQuery.serializeObject (unofficial). That said, it would not be hard to write a small function that would convert the returned JSON object you have into one of the formats listed above. Another option would be using a different method of serialization, such as parametizing it.

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

Sidebar

Related Questions

I made a C# Windows Form. It uses a web method, and then I
I am using jQuery to call web service (*.asmx) methods. The web service uses
I have a data fetching method that uses jQuery.ajax() to fetch xml files. /*
I have some web application that uses jQuery to send AJAX requests to server.
I have a web application that uses an ActiveX COM component, for example: <OBJECT
I have a web method with a signature like this: public string[] ToUpper(string[] values)
I have a web application that uses AJAX to grab JSON data from the
In the sidebar of the php web manual, link text the addChild method uses
I am developing web method for webservice in java. In this web method I
I have a problem with a oneway web method that open a moss site

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.