Monday, May 4, 2015

Using Knockout and jQuery to retrieve list of U.S. Presidents in JSON format using MySafeInfo API

Here's an example of how to retrieve JSON data using jQuery and binding it to a simple table using Knockout. In this example we'll use U.S. Presidents data from a free data service called MySafeInfo. You can view the configurable options for this particular dataset by clicking here. Or you can view the raw data for this example by clicking here.

This example relies on Knockout and uses to retrieve U.S. Presidents data in JSON format. MySafeInfo is a free service we offer to software developers to provide test data in a simple, flexible manner, in a variety of formats, including XML, JSON, JSONP, CSV, and more.