From the course: JSON Essential Training
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Challenge: Structure data with JSON-LD - JavaScript Tutorial
From the course: JSON Essential Training
Challenge: Structure data with JSON-LD
(energetic music) - [Instructor] Ready to build your own JSON-LD snippet? It's time for a challenge. The start code for this video includes an empty person.jsonld file. Your challenge is to add JSON-LD code that describes a person to this file. You can build a snippet that describes you, or you can pick a well-known person to build a snippet for. Your code should include at least three properties, so be sure to do research if necessary. Wikipedia displays a number of quick facts about famous people, so that can be a useful resource for this exercise. You can build your JSON-LD using the playground at jasonld.org, or using a generator, or you can create it from scratch. For an extra challenge, add a second level of data using a nested data type. You can refer to the person documentation on the schema.org site to learn more about nested data that's available for a person object. This exercise should take you about 10…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
What is JSON-LD?2m 46s
-
(Locked)
Implement predefined key names5m 33s
-
(Locked)
Map a data structure with JSON-LD3m 43s
-
(Locked)
Work with JSON-LD generators4m 40s
-
(Locked)
Add a JSON-LD snippet to a web page2m 46s
-
(Locked)
Challenge: Structure data with JSON-LD1m 8s
-
(Locked)
Solution: Structure data with JSON-LD6m 5s
-
(Locked)
-