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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:54:27+00:00 2026-06-17T06:54:27+00:00

I am using jQuery dataTables for grids ( http://www.datatables.net/ ). However my json is

  • 0

I am using jQuery dataTables for grids (http://www.datatables.net/).

However my json is formatted differently than the json example included with dataTables docs. Is it possible for dataTables to interpret the formatting in our json?

Their json looks like this

 {"aaData": [
 [
  "Trident",
  "Internet Explorer 4.0",
  "Win 95+",
  "4",
  "X"
  ],
 [
  "Trident",
  "Internet Explorer 5.0",
  "Win 95+",
  "5",
  "C"
 ]  
 ]  
 }

My JSON looks like this and unfortunately I can’t change it to look like the example included in their docs.

"allconfig": {
    "card.inserted": {
        "value": "Not Inserted",
        "type": "enum",
        "range": "",
        "clone": false,
        "archive": false,
        "access": "R"
    },
    "card.cisproc": {
        "value": "Processed",
        "type": "string",
        "range": "",
        "clone": false,
        "archive": false,
        "access": "R"
    }
    }
    }

Here is my jQuery

  $(document).ready(function() {
  $('#example').dataTable( {
    "bProcessing": true,
    "sAjaxSource": 'json/test.json'
  });
   });
  • 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-17T06:54:28+00:00Added an answer on June 17, 2026 at 6:54 am

    You can change your json format to required format.

    Use

      $.getJSON('json/test.json', function(data) {
      var newJson = [];
        var myJson = data ;
        $.each(myJson.allconfig, function (key, value) {
            var rowArray = [];
            rowArray.push(key);
            $.each(myJson.allconfig[key], function (key1, value1) {
                rowArray.push(value1);
            });
            newJson.push(rowArray);
        });
      $('#example').dataTable( { "bProcessing": true, "aaData":newJson  });
    });
    

    check http://jsfiddle.net/JASdL/

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

Sidebar

Related Questions

I am using jquery data tables server side method example here http://www.datatables.net/examples/server_side/server_side.html My JSON
I'm using the jquery Datatables plug-in (http://www.datatables.net) and need to show many columns (75+)
I'm using jQuery DataTables in my .NET web application but how do I set
I am using jQuery templates and the dataTables plug-in to create grids in my
I'm using the jQuery DataTables plugin, which is working really great so far. However
I am using Datatables Collapsible/Expandable Grouping. http://jquery-datatables-row-grouping.googlecode.com/svn/trunk/collapsibleGroups.html I have configured it so that all
How can I implement jQuery DataTables plugin using C#, ASP.NET, SQL Server side processing
I am using the jQuery UI with applied Theme to a datatables.net element. Unfortunately,
Problem: jQuery DataTables server-side processing using ASP.NET WebForms. Solution: Darin Dimitrov answered the question
I am using jquery datatables with server side C#/asp.net mvc3 processing. it all works

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.