Was ist das JSON-Format?

What is the JSON Format?

Das JSON-Format ist die Grundlage für alle Lern-Apps in LernApp Creator. Es definiert die Struktur deiner App mit Vorträgen, Quiz-Fragen und einem Glossar. Ein korrektes JSON-Format ist essentiell für eine funktionierende App.

The JSON format is the foundation for all learning apps in LernApp Creator. It defines the structure of your app with lectures, quiz questions, and a glossary. A correct JSON format is essential for a functioning app.

Grundstruktur

Basic Structure

Jede LernApp JSON-Datei hat folgende Grundstruktur:

Every learning app JSON file has the following basic structure:

{
  "app": {
    "title": "Titel deiner App",
    "description": "Beschreibung deiner App",
    "author": "Dein Name",
    "version": "1.0.0",
    "language": "en"
  },
  "lectures": [
    // Hier kommen deine Vorträge
  ],
  "quiz_questions": [
    // Hier kommen deine Quiz-Fragen
  ],
  "glossary": [
    // Hier kommt dein Glossar
  ]
}

App-Metadaten

App Metadata

Pflichtfelder

Required Fields

  • title: Der Name deiner App (max. 100 Zeichen)
  • title: The name of your app (max. 100 characters)
  • description: Kurze Beschreibung (max. 500 Zeichen)
  • description: Short description (max. 500 characters)
  • author: Dein Name oder Pseudonym
  • author: Your name or pseudonym
  • version: Versionsnummer (z.B. "1.0.0")
  • version: Version number (e.g., "1.0.0")
  • language: Sprache ("de" für Deutsch, "en" für Englisch)
  • language: Language ("de" for German, "en" for English)

Vorträge (Lectures)

Lectures

Vorträge sind der Hauptinhalt deiner App. Jeder Vortrag hat folgende Struktur:

Lectures are the main content of your app. Each lecture has the following structure:

{
  "id": "lecture-1",
  "title": "Titel des Vortrags",
  "content": "Hier steht der Inhalt des Vortrags...",
  "order": 1
}

Vortrag-Felder

Lecture Fields

  • id: Eindeutige ID (nur Buchstaben, Zahlen, Bindestriche)
  • id: Unique ID (only letters, numbers, hyphens)
  • title: Titel des Vortrags
  • title: Title of the lecture
  • content: Der Inhalt (HTML-Formatierung möglich)
  • content: The content (HTML formatting possible)
  • order: Reihenfolge (1, 2, 3, ...)
  • order: Order (1, 2, 3, ...)

Quiz-Fragen

Quiz Questions

Quiz-Fragen testen das Wissen der Nutzer. Hier ist die Struktur:

Quiz questions test user knowledge. Here is the structure:

{
  "id": "quiz-1",
  "question": "Was ist die Hauptstadt von Deutschland?",
  "type": "multiple-choice",
  "options": [
    "Berlin",
    "München",
    "Hamburg",
    "Köln"
  ],
  "correct": 0,
  "explanation": "Berlin ist seit 1990 die Hauptstadt von Deutschland."
}

Quiz-Felder

Quiz Fields

  • id: Eindeutige ID
  • id: Unique ID
  • question: Die Frage
  • question: The question
  • type: "multiple-choice" oder "true-false"
  • type: "multiple-choice" or "true-false"
  • options: Array mit Antwortmöglichkeiten
  • options: Array with answer options
  • correct: Index der richtigen Antwort (0-basiert)
  • correct: Index of correct answer (0-based)
  • explanation: Erklärung der richtigen Antwort
  • explanation: Explanation of the correct answer

Glossar

Glossary

Das Glossar erklärt wichtige Begriffe:

The glossary explains important terms:

{
  "id": "term-1",
  "term": "Begriff",
  "definition": "Definition des Begriffs",
  "category": "Kategorie"
}

Glossar-Felder

Glossary Fields

  • id: Eindeutige ID
  • id: Unique ID
  • term: Der Begriff
  • term: The term
  • definition: Die Definition
  • definition: The definition
  • category: Kategorie (optional)
  • category: Category (optional)

Vollständiges Beispiel

Complete Example

Hier ist ein vollständiges Beispiel für eine LernApp:

Here is a complete example for a learning app:

{
  "app": {
    "title": "Grundlagen der Mathematik",
    "description": "Eine Einführung in die Grundlagen der Mathematik",
    "author": "Max Mustermann",
    "version": "1.0.0",
    "language": "en"
  },
  "lectures": [
    {
      "id": "intro",
      "title": "Einführung",
      "content": "Willkommen zu den Grundlagen der Mathematik...",
      "order": 1
    },
    {
      "id": "addition",
      "title": "Addition",
      "content": "Die Addition ist eine der vier Grundrechenarten...",
      "order": 2
    }
  ],
  "quiz_questions": [
    {
      "id": "quiz-1",
      "question": "Was ist 2 + 2?",
      "type": "multiple-choice",
      "options": ["3", "4", "5", "6"],
      "correct": 1,
      "explanation": "2 + 2 = 4 ist eine grundlegende mathematische Wahrheit."
    }
  ],
  "glossary": [
    {
      "id": "addition-term",
      "term": "Addition",
      "definition": "Eine der vier Grundrechenarten",
      "category": "Grundrechenarten"
    }
  ]
}

Validierung

Validation

Bevor du deine JSON-Datei hochlädst, solltest du sie validieren:

Before uploading your JSON file, you should validate it:

Häufige Fehler

Common Errors

  • Fehlende Kommas zwischen Objekten
  • Missing commas between objects
  • Falsche Anführungszeichen (nur " verwenden)
  • Wrong quotation marks (only use ")
  • Fehlende schließende Klammern
  • Missing closing brackets
  • Doppelte IDs
  • Duplicate IDs

JSON-Validator verwenden

Use JSON Validator

Nutze unseren integrierten JSON-Validator, um deine Datei zu überprüfen.

Use our integrated JSON validator to check your file.

Zum Upload