Sunday , 16 December 2018
Home / Tag Archives: dot syntax

Tag Archives: dot syntax

Nesting Objects and Arrays – JSON Tutorial

Nesting objects and arrays

Let’s talk about nesting JSON data. We’ll learn about nesting objects and arrays. Let’s update our script to this. [crayon-5c15f4aa85bc5738220363/] Inside our JSON object, we store 2 other JSON objects. Since we do it this way, we now have access to the other JSON objects. This makes it easier to manage and store data. Let’s learn how to access the …

Read More »

Creating JSON Data – JSON Tutorial

Creating JSON Data

So, let’s get started with creating JSON data. Before we do, let’s set up our files and folders. Create a file called index.html and a folder called js. Inside your js folder, create a file called script.js. Inside your index.html add this bit of code. [crayon-5c15f4aa876b0999571939/] Nothing special going on here besides including our script. So, let’s get started! Open …

Read More »