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

The Archive Base Latest Questions

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

I am parsing generated json with jquery $.ajax but there is one option that

  • 0

I am parsing generated json with jquery $.ajax but there is one option that I dont understand. I saw it in some examples and tried to look for at jquery.com but still not sure about it:

this option is:

data: { get_param: 'value' }

which is used like this:

$.ajax({ 
                type: 'GET', 
                url: 'http://example/functions.php', 
                data: { get_param: 'value' }, //why we shell use that in that case?
                success: function (data) { 
                                    var names = data
                    $('#cand').html(data);
                }
          });

I know that “data:” is what sent to the server but parsing JSON I thought i don’t send but retrieve from server with GET type. And the next part “get_param: ‘value’”
does not make sense to me in that case either, could anyone please explain when and what for and in what cases it shell be used?

thank you.

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

    I know that “data” is what sent to the server

    Yes. If data is an object, it gets serialized to an application/x-www-form-urlencoded string and then placed in the query string or request body as appropriate for the request type (GET/POST).

    jQuery does all the escaping necessary for this.

    (It also, by default, collapses nested data structures (you don’t have any in your example) into PHP-style by adding [] to key names).

    but parsing JSON

    JSON is not involved (unless the server responds with some).

    when and what for and in what cases it shell be used

    Whenever you want to pass data to the server rather than requesting a static URI.

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

Sidebar

Related Questions

I'm working with django-piston and parsing that JSON output in Objective-C, but having some
I have some web application that uses jQuery to send AJAX requests to server.
I'm parsing a JSON object (from YQL) that includes some null values, like this:
I am currently trying to pass a generated JSON string to dojo for parsing
I have a basic jQuery selector question. Let's say I'm parsing JSON and generating
I have an HTML/XML table generated by AJAX that displays limited columns of a
I am playing around with parsing JSON in jQuery and I am having trouble.
I have been coding for JSON parsing all things are right but in logcat
I am having problems with Jquery parsing the JSON I am sending back... however,
I have tried parsing JSON for the first time. In my JSON data there

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.