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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:33:13+00:00 2026-05-22T03:33:13+00:00

I have Json of the form [{id:39,data:1},{id:40,data:2}] It does not parse properly with jQuery.parseJSON()

  • 0

I have Json of the form

[{"id":39,"data":1},{"id":40,"data":2}]

It does not parse properly with jQuery.parseJSON()

I need to take this data and create a html table. I was thinking of creating the HTML dynamically in the js.

A. How can I parse the json?
B. Is dynamic html the best route?

Update
I apologize. Evidently my question is not clear. Here is the jquery

 $.get('Service.aspx',
    { p1: value, p2: value },
    function (data) {
        notesJson = data;
        alert(notesJson);//Json comes back as I said here...
        var noteSet = jQuery.parseJSON(notesJson);
        alert(noteSet.notes);                      
 });

notes does exist in the Json.
The second alert fails “undefined”.

  • 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-22T03:33:14+00:00Added an answer on May 22, 2026 at 3:33 am

    Ok based on you comment on your question:

    Use $.getJSON instead of $.get:

    $.getJSON('someurl', {/*somedata*/}, function(json_data){
    
        //no need for parsejson
        //use the json_data object
    
        var table_obj = $('table');
        $.each(json_data, function(index, item){
             var table_row = $('<tr>', {id: item.id});
             var table_cell = $('<td>', {html: item.data});
             table_row.append(table_cell);
             table_obj.append(table_row);
        })
    
    })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got HTML form for editing images. All data is stored in JSON. When
I have very simple script for submitting the form. This is html template: <table>
I have one JSON that is coming in a string format. I need to
Hi I have a JSON object that is a 2-dimentional array and I need
I have a JSON array with ActiveRecord objects. These objects can be reconstructed using
I have a JSON as follows { columns : [RULE_ID,COUNTRY_CODE], RULE_ID : [1,2,3,7,9,101,102,103,104,105,106,4,5,100,30], COUNTRY_CODE
I have two JSON objects with the same structure and I want to concat
I have a JSON result that contains numerous records. I'd like to show the
Do Pagemethods and Json have security risks?(I dont use cookies).Forexample i have a pagemethod
So, I have a json file and I want to get the names of

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.