Implemented reading data from JSON.