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

  • Home
  • SEARCH
  • 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 6124563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:08:50+00:00 2026-05-23T16:08:50+00:00

My json data returned from server is like this: { total: 3, page: 1,

  • 0

My json data returned from server is like this:

{
    "total": "3",
    "page": "1",
    "records": "21",
    "rows": [
        {
            "id": "6007",
            "cell": [
                "6007",
                "xxx",
                "",
                "22.2"
            ]
        },
        {
            "id": "6008",
            "cell": [
                "6008",
                "xxx",
                "",
                "22.2"
            ]
        },
        {
            "id": "6009",
            "cell": [
                "xxx",
                "xxx",
                "",
                "22.2"
            ]
        },
        {
            "id": "6011",
            "cell": [
                "6011",
                "xxx",
                "",
                "22.2"
            ]
        },
        {
            "id": "6012",
            "cell": [
                "6012",
                "xxx",
                "",
                "22.2"
            ]
        },
        {
            "id": "6013",
            "cell": [
                "6013",
                "xxx",
                "",
                "22.2"
            ]
        },
        {
            "id": "6014",
            "cell": [
                "6014",
                "xxx",
                "",
                "22.2"
            ]
        },
        {
            "id": "6015",
            "cell": [
                "6015",
                "xxx",
                "",
                "22.2"
            ]
        },
        {
            "id": "6016",
            "cell": [
                "6016",
                "xxx",
                "",
                "22.2"
            ]
        },
        {
            "id": "6017",
            "cell": [
                "6017",
                "xxx",
                "",
                "22.2"
            ]
        }
    ]
}

I’m using this jqGrid Declaration in the jquery ready function:

 jQuery('#jqGrid1').jqGrid({
                caption: 'test grid',
                url: 'myurl',
                datatype: 'json',
                colNames: ["Column1", "Column2", "Weight", "NetWeight"],
                colModel: [
                    { "index": "Id", "width": 50, "name": "PartId" },
                    { "index": "Name","width": 100, "name": "CHNPartName" },
                    { "index": "Weight", "width": 75, "name": "Weight" },
                    { "index": "NetWeight", "name": "NetWeight"}
                ],
                viewrecords: true,
                loadError: jqGrid_aspnet_loadErrorHandler,
                pager:jQuery('#Pager1'),
                width: '640'
            });

but occur parsererror in the response , anyone can help me? thanks .

  • 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-05-23T16:08:50+00:00Added an answer on May 23, 2026 at 4:08 pm

    I suppose that you just not set correctly the Content-Type of the HTTP header of the server response. In case of the JSON data it should be "application/json" corresponds to RFC4627. If you use static file to hold the text data you can try to rename the file extension to ".json". Look at the demo which shows that your JSON data can be read by jQuery 1.6.2 without any problem.

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

Sidebar

Related Questions

I'm having difficulty parsing some JSON data returned from my server using jQuery.ajax() To
I have a Coldfusion Webservice that returns json data like below: {rows:[{cell:[43,USA,jon,doe,doe@gmail.com,HR],id:43}, {cell:[44,JAPAN,tanaka,yidi,yidi@aol.com,IT],id:44}], page:1,records:2,total:1}
I have a JSON data like this: { hello: { first:firstvalue, second:secondvalue }, hello2:
I am having an issue with the using jqGrid with JSON data returned from
I am sending some data from an server back to a page. It looks
The nodejs server 'gets' this JSON stream from Twitter and sends it to the
I am trying to parse data from a MongoDB cloud server. My JSON data
I have this case (a JSON string returned by my server): {success: true, users:
This is my json returned: { aaData: [[15/10/2010,.tv,All / Unidentified,Streaming,7,1.33,30%,0.4], [08/10/2010,.tv,All / Unidentified,Streaming,30,5.7,30%,1.71], [Total,,,,90,17.1,,5.13],]
My goal is store temporary files in the directory returned by Context#getCacheDir(). /data/data/my.app/cache/somedir/foo.json I

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.