Question: Make a JSON file containing links with a title and a description. Look at this example as to what your program should look like when

Make a JSON file containing links with a title and a description.

Look at this example as to what your program should look like when it's run.

This is an example using a JSON file to write peoples names and ages. Here is the JS file.

Your program should read in a JSON file that will have a URL, title, description. Make a web page to build the page so the menu reads the JSON file and write to the page the links.

To keep things simple, don't use " or ' in your title or description. It might cause errors.

Example link: http://www.sci.brooklyn.cuny.edu/~goetz/cisc3610/json/example.html

second example:

David 20

Jon 30

Larry 35

JSON:

people = '[{"name" : "David", "age" : "20"},{"name" : "Jon", "age" : "30"},{"name" : "Larry", "age" : "35"}]'; 

JS:

// Ordered collection of values. Begin with [ end with ] separated by , // Unordered sets of name/value pairs. Begin with { end with } each name followed by by a : separated by , var mydata = JSON.parse(people); for(i=0; i< mydata.length; i++) { document.writeln(mydata[i].name+" "+mydata[i].age+"

"); }

HTML5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!