I have a internal JSON list that I need to parse into a table on a page. The data is in no order but I would like it alphabatized based on the "Name" attribute. I have the connection to the data working and can see the response in Firebug, but I'm completely lost on how t o sort it and put it in a table. Can anyone help me.
This is the structure of my JSON data: [{"id": ###, "Name":"This is a test","Vendor":null/text,"URL":"http://www.google.com","Coverage":"Full","Avability":null/text,"Descriptions":,"Description here."},{"id": ###, "Name":"This is a test","Vendor":null/text,"URL":"http://www.google.com","Coverage":"Full","Avability":null/text,"Descriptions":,"Description here."}]
@mweldan - thanks for the response. I understand the converting an object but I'm lost on how to look the "obj" to show all of the items returned and I'm also lost on how to alphabetize the list.
I have a internal JSON list that I need to parse into a table on a page. The data is in no order but I would like it alphabatized based on the "Name" attribute. I have the connection to the data working and can see the response in Firebug, but I'm completely lost on how t o sort it and put it in a table. Can anyone help me.
This is the structure of my JSON data: [{"id": ###, "Name":"This is a test","Vendor":null/text,"URL":"http://www.google.com","Coverage":"Full","Avability":null/text,"Descriptions":,"Description here."},{"id": ###, "Name":"This is a test","Vendor":null/text,"URL":"http://www.google.com","Coverage":"Full","Avability":null/text,"Descriptions":,"Description here."}]
on success, convert json string to javascript object
use: http://api.jquery.com/jQuery.parseJSON/
@mweldan - thanks for the response. I understand the converting an object but I'm lost on how to look the "obj" to show all of the items returned and I'm also lost on how to alphabetize the list.
i have created example codes for this: https://dl.dropbox.com/u/12386479/json_example.zip
hope it helps.