{
  "request": {
    "url": "https://peoplehub.golsh2e.com/eReKruit/api/coding/submit"
  },
  "response": {
    "ok": true,
    "status_code": 200,
    "kind": "coding_submit",
    "data": {
      "status": true,
      "message": "Submission saved and report generated",
      "data": {
        "report": {
          "id": 5,
          "kind": "coding_assessment_report",
          "submissionId": 12,
          "accessKey": "6BKSP9",
          "candidateName": "Sufi Ansari",
          "questionId": 2,
          "questionTitle": "Armstrong",
          "difficulty": "easy",
          "position": "software developer",
          "problemStatement": "An Armstrong number (also known as a narcissistic number) is a number that is equal to the sum of its own digits each raised to the power of the number of digits. For example, 153 is an Armstrong number because 1^3 + 5^3 + 3^3 = 153. Write a function that checks if a given number is an Armstrong number. The function should return true if it is, and false otherwise.",
          "questionText": "An Armstrong number (also known as a narcissistic number) is a number that is equal to the sum of its own digits each raised to the power of the number of digits. For example, 153 is an Armstrong number because 1^3 + 5^3 + 3^3 = 153. Write a function that checks if a given number is an Armstrong number. The function should return true if it is, and false otherwise.",
          "language": "javascript",
          "sessionId": "CS-12",
          "durationSeconds": 30,
          "evaluator": "AI Code Evaluator",
          "submittedCode": "function isArmstrong(num) {\n System.out.println(\"Test\");\n}",
          "overallScore": 10.0,
          "correctnessScore": 0.0,
          "codeQualityScore": 20.0,
          "verdict": "Fail",
          "summary": "The submitted code does not implement the required functionality to check for Armstrong numbers. The function is incomplete and contains incorrect syntax for JavaScript.",
          "recommendations": "The candidate should focus on implementing the logic to check if a number is an Armstrong number. This includes extracting the digits, calculating the sum of the digits raised to the power of the number of digits, and comparing the result to the original number.",
          "dimensionsJson": "[{\"name\":\"Problem Solving\",\"score\":0},{\"name\":\"Algorithm Efficiency\",\"score\":0},{\"name\":\"Code Readability\",\"score\":20},{\"name\":\"Best Practices\",\"score\":0},{\"name\":\"Error Handling\",\"score\":0}]",
          "feedbackJson": "[{\"type\":\"strength\",\"text\":\"The function has a clear name that indicates its purpose.\"},{\"type\":\"strength\",\"text\":\"The candidate attempted to define a function for the problem.\"},{\"type\":\"suggestion\",\"text\":\"The candidate should ensure the function includes the logic to check for Armstrong numbers.\"},{\"type\":\"suggestion\",\"text\":\"The use of 'System.out.println' is incorrect for JavaScript; 'console.log' should be used instead.\"},{\"type\":\"recommendation\",\"text\":\"Consider breaking down the problem into smaller steps, such as extracting digits and calculating the sum.\"}]",
          "codeReviewJson": "[{\"role\":\"evaluator\",\"content\":\"The function is defined but does not include any logic to check for Armstrong numbers.\",\"timestamp\":\"09:00 am\"},{\"role\":\"evaluator\",\"content\":\"The use of 'System.out.println' is not valid in JavaScript; this will cause a runtime error.\",\"timestamp\":\"09:01 am\"},{\"role\":\"evaluator\",\"content\":\"I recommend implementing a loop to extract digits and calculate the sum of their powers.\",\"timestamp\":\"09:02 am\"},{\"role\":\"candidate\",\"content\":\"I was trying to set up the function but didn't complete the logic.\",\"timestamp\":\"09:03 am\"},{\"role\":\"evaluator\",\"content\":\"It's important to ensure that the function returns a boolean value based on the condition.\",\"timestamp\":\"09:04 am\"},{\"role\":\"evaluator\",\"content\":\"Make sure to test your function with various inputs to verify its correctness.\",\"timestamp\":\"09:05 am\"}]",
          "reportJson": "{\n  \"overall_score\": 10,\n  \"correctness_score\": 0,\n  \"code_quality_score\": 20,\n  \"verdict\": \"Fail\",\n  \"summary\": \"The submitted code does not implement the required functionality to check for Armstrong numbers. The function is incomplete and contains incorrect syntax for JavaScript.\",\n  \"recommendations\": \"The candidate should focus on implementing the logic to check if a number is an Armstrong number. This includes extracting the digits, calculating the sum of the digits raised to the power of the number of digits, and comparing the result to the original number.\",\n  \"dimensions\": [\n    {\"name\": \"Problem Solving\", \"score\": 0},\n    {\"name\": \"Algorithm Efficiency\", \"score\": 0},\n    {\"name\": \"Code Readability\", \"score\": 20},\n    {\"name\": \"Best Practices\", \"score\": 0},\n    {\"name\": \"Error Handling\", \"score\": 0}\n  ],\n  \"feedback\": [\n    {\"type\": \"strength\", \"text\": \"The function has a clear name that indicates its purpose.\"},\n    {\"type\": \"strength\", \"text\": \"The candidate attempted to define a function for the problem.\"},\n    {\"type\": \"suggestion\", \"text\": \"The candidate should ensure the function includes the logic to check for Armstrong numbers.\"},\n    {\"type\": \"suggestion\", \"text\": \"The use of 'System.out.println' is incorrect for JavaScript; 'console.log' should be used instead.\"},\n    {\"type\": \"recommendation\", \"text\": \"Consider breaking down the problem into smaller steps, such as extracting digits and calculating the sum.\"}\n  ],\n  \"code_review\": [\n    {\"role\": \"evaluator\", \"content\": \"The function is defined but does not include any logic to check for Armstrong numbers.\", \"timestamp\": \"09:00 am\"},\n    {\"role\": \"evaluator\", \"content\": \"The use of 'System.out.println' is not valid in JavaScript; this will cause a runtime error.\", \"timestamp\": \"09:01 am\"},\n    {\"role\": \"evaluator\", \"content\": \"I recommend implementing a loop to extract digits and calculate the sum of their powers.\", \"timestamp\": \"09:02 am\"},\n    {\"role\": \"candidate\", \"content\": \"I was trying to set up the function but didn't complete the logic.\", \"timestamp\": \"09:03 am\"},\n    {\"role\": \"evaluator\", \"content\": \"It's important to ensure that the function returns a boolean value based on the condition.\", \"timestamp\": \"09:04 am\"},\n    {\"role\": \"evaluator\", \"content\": \"Make sure to test your function with various inputs to verify its correctness.\", \"timestamp\": \"09:05 am\"}\n  ]\n}",
          "receivedAt": "2026-05-30T20:57:54.56+05:30",
          "generatedAt": "2026-05-30T20:58:00.708+05:30"
        },
        "submission": {
          "id": 12,
          "kind": "coding_submit",
          "accessKey": "6BKSP9",
          "receivedAt": "2026-05-30T20:57:54.56+05:30",
          "candidateId": "420",
          "questionId": 2,
          "questionText": "An Armstrong number (also known as a narcissistic number) is a number that is equal to the sum of its own digits each raised to the power of the number of digits. For example, 153 is an Armstrong number because 1^3 + 5^3 + 3^3 = 153. Write a function that checks if a given number is an Armstrong number. The function should return true if it is, and false otherwise.",
          "language": "javascript",
          "code": "function isArmstrong(num) {\n System.out.println(\"Test\");\n}",
          "submittedAt": "2026-05-30T20:57:51.529+05:30"
        }
      }
    },
    "is_empty": false,
    "candidate": {
      "id": "5",
      "name": "Sufi Ansari",
      "email": "",
      "phone": "",
      "position_applied": "software developer",
      "skill_set": [],
      "current_stage": null
    },
    "error": null
  }
}