Need to Post json data using jQuery.ajax

Posted by Anil Bhat on Stack Overflow See other posts from Stack Overflow or by Anil Bhat
Published on 2012-09-29T09:32:28Z Indexed on 2012/09/29 9:37 UTC
Read the original article Hit count: 202

Filed under:
|
|

I have a json of the following format which I need to send in the Ajax request through POST method:

  {
    “gbus”: [
        {
            "code": "*"
        }
    ],
    “regions”: [
        {
            "code": "*"
        }
    ],
    “offices”: [
        {
             "code": "*"
        }
    ],
    “contracttypes”: [
        {
            "code": "*"
        }
    ],
    “jobnumbers”: [
        {
            "code": "*"
        }
    ],
    “disciplines”: [
        {
            "code": "*"
        }
    ]
    }

Its not working for me, giving 500 error always when I try to submit it. Please suggest if you have any idea.

© Stack Overflow or respective owner

Related posts about JSON

Related posts about jquery-ajax