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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:27:05+00:00 2026-06-13T03:27:05+00:00

This is my code that worked with the beta of Fusion Tables (below is

  • 0

This is my code that worked with the beta of Fusion Tables (below is part of the jqGrid code that Oleg helped me with the other year):

jsonReader: {
repeatitems: false,
cell: "", // the same as cell: function (obj) { return obj; }
root: "table.rows",
page: function (obj) { return 1; },
total: function (obj) { return 1; },
records: function (obj) { return obj.table.rows.length; }
},

and here is the OLD JSON data returned from Google:

jQuery16406014587786572121_1350317794100(
{"table":
    {
    "cols":
        ["id","latitude","longitude","name","address_line_1","address_line_2","address_line_3","postcode"],
    "rows":
        [[1234,"55",-1.5, --etc

With the new API from Google, the JSON returned now looks like this:

{
"kind": "fusiontables#sqlresponse",
"columns": [
    "id",
    "latitude",
    "longitude",
    "name",
    "address_line_1",
    "address_line_2",
    "address_line_3",
    "postcode"
],
"rows": [
    [
        "1234",
        "55",
        -1.5,
        "Name One",
        "Road 1",
        "Road 2",
        "Sunderland",
        "SR1 1AA"
    ],

It doesn’t seem to have a ‘root’, and I couldn’t work out how to get the jsonReader to work with this new JSON. I have had a Google around to see if others have run into this, but only one or two unanswered hits re. java. Can anyone help me out please?

  • 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-13T03:27:06+00:00Added an answer on June 13, 2026 at 3:27 am

    I see only that “table” part are removed from the JSON response. So I suppose you can try the following jsonReader:

    jsonReader: {
        cell: "",
        page: function (obj) { return 1; },
        total: function (obj) { return 1; },
        records: function (obj) { return obj.rows.length; }
    }
    

    Additionally you can include id: 0 in jsonReader or use key: true for the "id" column definition (in colModel).

    By the way I don’t think that repeatitems: false is correct setting for the old format of data.

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

Sidebar

Related Questions

This is code that worked fine on Windows XP for years. User is not
I copy and pasted some code that increments an enum: myenum++; This code worked
I go this AJAX code that worked fine, but when I moved it to
I have this code here that worked all this time in 2.3 now we
This question came about because code that worked previously in .NET 4.0 failed with
This is the code that I made that has worked but all of a
Hello I have this code that worked to load a dll from a project
A co-worker asked about some code like this that originally had templates in it.
I have something like this in my code: worker.setObject(queue.poll()); I want a queue that
In this code that uses the mongodb-native driver I'd like to increase the value

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.