Import JSON files in Typescript

Add the following to the tsconfig.json file:

{
	"compilerOptions": {
		"resolveJsonModule": true,
		"esModuleInterop": true
	}
}

Then import like this:

import ongoingCourses from './data/ongoing.json';