I am really sorry for asking such a basic question, but I was not able to find a satisfying answer or a good tutorial anywhere.
I have a JSON file, called 'content.json' which has very basic data in it:
{
"records": [
{
"number": "001",
"name": "Jill",
"date": "2014. January 01."
}
{
"number": "002",
"name": "John",
"date": "2014. March 03."
}
]}
and so forth...
I would like to parse this JSON into an object that can be referenced in an html page. So, lets say, I would like to take the name
entry of the first object of my JSON and use it as the content of a div (or any basic HTML object that is capable of displaying text). In other words, I would like to be able to get the content of the JSON file by referring to the object I parsed it into (like object.first_element.name or something like that) and it would give me Jill
back to work with.
The problem is that my knowledge of Javascript is very basic (I'm pretty okay with HTML and CSS), and none of the tutorials I found were helpful regarding this particular problem. Could someone show me how to do this or at least direct me to a good tutorial?