Need to Post json data using jQuery.ajax
- by Anil Bhat
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.