Javascript Code: JSON to table (div)

Closed

Description

I have a website which should show products and prices that should be called from a JSON file. the JSON file structure looks like that and has about 300 entries:

[{"id":"22","name":"Dock Connector mit Flexkabel weiss","inventory":"3","price":"59"},{"id":"23","name":"Akku","inventory":"-1","price":"49"},{"id":"24","name":"Power \/ Volume Flex","inventory":"12","price":"59"},{"id":"25","name":"Lautsprecher Ear","inventory":"0","price":"49"},{"id":"26","name":"LCD \/ Digitizer Assembly schwarz","inventory":"12","price":"139"}]

What I need is a Javascript code snippet that calls single items from a JSON file (e.g. item with the id "25" and "26") and puts the "name" and the "price" of those items inside a table (within a div tag). I already have a Javascript which calls the whole content of the JSON:

<div id="displayprices"></div><script type="text/javascript">

[url removed, login to view]("[url removed, login to view] [url removed, login to view]",

function(data) {

[url removed, login to view](data, function(key, val) {

var tr=jQuery('<tr></tr>');

[url removed, login to view](val, function(k, v){

jQuery('<td>'+v+'</td>').appendTo(tr);

});

[url removed, login to view]('#displayprices');

});

});

</script>

I need this to be done within 24 hours.

Skills: Java, Javascript, PHP, WordPress

See more: javascript json table, json table, json table javascript, what is.json, website mit wordpress, table data structure, json calls, flex code, div 1 a, data structure code, what is json, what is a javascript, val, table of content, json, json script, json c, g-code, div, digitizer, code snippet wordpress, javascript items, prices table wordpress, javascript volume, table json javascript

Project ID: #5409625

Awarded to:

MinorityPath

Hi, I have read your project description and I can make that snippet for you. How do you want to get the id from ? are you going to supply it into the function or do you want me to make it that the id grabbed from s More

$25 USD in 0 days
(21 Reviews)
4.5

9 freelancers are bidding on average $22 for this job

krylenkom

A proposal has not yet been provided

$25 USD in 1 day
(212 Reviews)
6.6
wbslivera

Hello, I am oracle certified professional java programmer and have Bsc.IT. I have helped many similar assignments before, so I can surely help you, thanks

$24 USD in 1 day
(62 Reviews)
5.3
rana100

Hi, I am a php mysql,wordpress,javascript & css expert. I am ready to work in your project. Pls look at some portfolio I am expert in E-commerce http://prepare2win.com/ http://indigo.websitewelcome.com/~ More

$15 USD in 1 day
(17 Reviews)
4.8
anmoltech

Hello sir I am an expert in html, html5, css, php, jQuery, javascript, ajax, mysql and yii framework. Please give me a chance to work with you. Thanking you..

$24 USD in 1 day
(24 Reviews)
4.2
kundanntl

Hi Gone Through the details I can do as specified Let start the work Thanks Keg ........................ ..............

$18 USD in 1 day
(22 Reviews)
4.1
shahid864

hi, my name is shahid, i am working in web development form past four year. Surely will provide you quality work and we will have long term relationship in web development. Thanks

$25 USD in 1 day
(46 Reviews)
4.0
abbaspalash

A proposal has not yet been provided

$35 USD in 1 day
(2 Reviews)
1.8
majid3ma

Hi, I have seen your project advertisement and I think I am a good candidate to do your job. Please feel free to ask me anything you want specially about my skills and knowledge. I am looking forward to hearing fro More

$25 USD in 1 day
(1 Review)
0.8
anhnt38

I have done many project working with json. Just hire me and take a cup of coffee. It should be done soon :)

$25 USD in 1 day
(0 Reviews)
0.0
romafanat

My current job involves Javascript with JSON, so no w0rries ))) I have a good experience with those stuff.

$20 USD in 1 day
(0 Reviews)
0.0