Code Docs

Documentation

Team

JSON Data

JSON Data

This will give a good summary how the JSON Data is structured.

Programming language

First of all in the document there are the keys for the programming language, because that is the first thing in the Website, you can choose from.

{
	"Python": {
		...
	},
	"Javascript": {
		...
	}
}

Difficulty

Secondly you have to choose from a difficulty, which will always be “easy”, “medium” and “hard”. These will be arrays, including the Videos.

{
	"Python": {
		"easy": [
			...
		],
		"medium": [
			...
		],
		"hard": [
			...
		]
	}
}

Video

A video is built with many keys and values.

{
	"Python": {
		"easy": [
			{
				"index": 1,
				"URL": "<https://www.youtube.com/watch?v=fWjsdhR3z3c>",
				"questions": [
					...
				]
			}
		]
	}
}

Questions

Every video has an exact amount of questions, which are always multiple choice questions. And there is always only 1 right answer.

{
	"Python": {
		"easy": [
			{
				"index": 1,
				"URL": "<https://www.youtube.com/watch?v=fWjsdhR3z3c>",
				"questions": [
					{
						"index": 1,
						"time": 118,
						"rightanswer": 3,
						"answer1": "Variablen können nur Zahlen enthalten.",
						"answer2": "Python unterscheidet nicht zwischen Groß- und Kleinschreibung.",
						"answer3": "Variablennamen mit mehreren Wörtern sollten durch Unterstriche getrennt werden.",
						"answer4": "Strings müssen immer in doppelten Anführungszeichen stehen."
					}
				]
			}
		]
	}
}

Table of Contents