retrieved necessary information from JSON