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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:23:37+00:00 2026-06-12T13:23:37+00:00

I am looking to pass a serializeArray form, essentially: $.each($(‘#myform’).serializeArray(), function () { json[this.name]

  • 0

I am looking to pass a serializeArray form, essentially:

$.each($('#myform').serializeArray(), function () {
    json[this.name] = this.value;
});
var param = "{\"form\":" + JSON.stringify(json) + "}";

to a WCF service. My goal is to pass param to a WCF method and them parse everything inside of param, or what was passed. I would be tough to create a class of object type because the form can change. Any help with this is great!

  • 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-12T13:23:38+00:00Added an answer on June 12, 2026 at 1:23 pm

    I’d check out json.org for a parser. I use Json.NET

    Here is an example of what I think you are talking about:

    string json = @"{
       'CPU': 'Intel',
       'PSU': '500W',
       'Drives': [
         'DVD read/writer'
         /*(broken)*/,
         '500 gigabyte hard drive',
         '200 gigabype hard drive'
       ]
    }";
    
    JsonTextReader reader = new JsonTextReader(new StringReader(json));
    while (reader.Read())
    {
      if (reader.Value != null)
        Console.WriteLine("Token: {0}, Value: {1}", reader.TokenType, reader.Value);
      else
        Console.WriteLine("Token: {0}", reader.TokenType);
    }
    

    This will iterate over whatever you have in your JSON object and output the Token and the Value. In this case you will get this:

    Token: StartObject
    Token: PropertyName, Value: CPU
    Token: String, Value: Intel
    Token: PropertyName, Value: PSU
    Token: String, Value: 500W
    Token: PropertyName, Value: Drives
    Token: StartArray
    Token: String, Value: DVD read/writer
    Token: Comment, Value: (broken)
    Token: String, Value: 500 gigabyte hard drive
    Token: String, Value: 200 gigabype hard drive
    Token: EndArray
    Token: EndObject
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to pass a string into a function and return the json object
I am looking to pass an event to a helper function. This function will
I'm looking to pass the value selected in the drop box when I click
I'm fairly new to objective-c, and am looking to pass a number of key-value
I am looking for a method to pass property itself to a function. Not
I'm looking to pass an anonymous function to another function, but it doesn't seem
I'm looking how to pass a string/array to a function, I have tried to
I'm looking for a way to pass a class method to a call-back function
I'm looking for a way to pass in a FILE * to some function
I'm looking to pass the current traffic source/medium through a contact form on a

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.