DataSource class defined. The DataSource object loads json data into an array at once.