Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
JavaScript and JSON Essentials

You're reading from   JavaScript and JSON Essentials If you fancy a less verbose data format than CSV or XML, then JSON could be for you. This tutorial will teach you about using JSON with JavaScript for effective local storage or Internet transfers.

Arrow left icon
Product type Paperback
Published in Oct 2013
Publisher Packt
ISBN-13 9781783286034
Length 120 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Sai S Sriparasa Sai S Sriparasa
Author Profile Icon Sai S Sriparasa
Sai S Sriparasa
Arrow right icon
View More author details
Toc

Building the JSON file for the Carousel application


Let us assume that we are an educational institution, and we have a tradition of acknowledging the efforts of our students on a monthly basis. We will pick the top students from each course for that month, and display their names on our notice board rotator application. This notice board rotator application has often served as a motivation for other students, who always aim to get themselves onto that board. This is the way our educational institution is encouraging the students to do well in their courses. The example JSON feed will look like the following screenshot:

For our notice board rotator application, we will need basic student information, such as the first name, last name, current level of education, and the course that they have excelled in.

index-v2.html

In the preceding screenshot, we are using jQuery's getJSON() function to bring the JSON feed into the document. When the index-v2.html file is loaded into the browser, the students...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image