Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON structure for downloading students' response data #1363

Open
smmercuri opened this issue Jan 16, 2025 · 1 comment
Open

JSON structure for downloading students' response data #1363

smmercuri opened this issue Jan 16, 2025 · 1 comment

Comments

@smmercuri
Copy link
Collaborator

Currently responses are recorded in the following format:

"Seed: n; ans1: ""..."" [score]; prt1: # = 1 | prt1-1-T"

To make parsing this more routing in offline analysis, creating an optional JSON equivalent of this would be beneficial. For example

{
    "Seed": "n",
    "inputs": {
        "ans1" : {
            "value" : "...",
            "status" : "score"
        },
        "ans2" : ... 
        },
    "prts" : {
        "prt1" : {
            "score" : "1",
            "node" : "prt1-1-T"
        },
        "prt2" : ...
        }
}
@sangwinc
Copy link
Member

@smmercuri, thanks for raising this. I suggest you start with this method to create a JSON object.
https://github.com/maths/moodle-qtype_stack/blob/dev/question.php#L770
We can then decide how to give a teacher access to this method, e.g. adding functionality to the analysis script
https://github.com/maths/moodle-qtype_stack/blob/dev/questiontestreport.php

@sangwinc sangwinc changed the title JSON structure for response JSON structure for downloading students' response data Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants