Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • I already looked at the traditional option and still I'm getting the brackets in the end of the parameter's name. Do you know of a way of getting the parameter name without brackets? Commented Feb 23, 2011 at 8:16
  • I just rechecked my code and it turns out I put the traditional in the wrong place. So thank you for your help and sorry for wasting your time. Commented Feb 23, 2011 at 8:41
  • Is there a way to also set traditional when using getJSON() rather than ajax()? Commented Dec 21, 2011 at 9:58
  • 2
    @hippietrail: As the last sentence in the quoted documentation says, you can set jQuery.ajaxSettings.traditional = true;. Or instead of passing the object directly to getJSON, you can pass the result of $.param(obj, true). Commented Dec 21, 2011 at 10:02