Menu

← Back to Home

Upload Questions

Upload a JSON file to import questions into the database

Click to upload or drag and drop
JSON file only

JSON Format Guide

Your JSON file should be an array of chapter objects. Each chapter should contain an array of questions.

View Example Format
{
  "example": [
    {
      "chapter": "Chapter 1: Electrical & Electronics",
      "questions": [
        {
          "id": 1,
          "question": "What is Ohm's law?",
          "options": [
            "V = IR",
            "I = VR",
            "R = IV",
            "V = I/R"
          ],
          "correct_answer": "V = IR",
          "hint": "Think about the relationship between voltage, current, and resistance.",
          "explanation": "Ohm's law states that voltage (V) equals current (I) multiplied by resistance (R).",
          "chapter": "chapter-01",
          "difficulty": "easy",
          "source": "Custom Source"
        }
      ]
    }
  ]
}

Required fields for each question:

  • question - The question text
  • options - Array of answer options
  • correct_answer - The correct answer

Optional fields:

  • id or question_number - Question number
  • hint - Hint text
  • explanation - Explanation text
  • chapter - Chapter tag (e.g., "chapter-01")
  • difficulty - "easy" or "difficult"
  • source - Source name