idp_server.IO¶
This module contains code to create and analyze messages to/from the web client.
-
idp_server.IO.
metaJSON
(state)[source]¶ Format a response to meta request.
- Parameters
idp – the response
- Returns out
a meta request
-
idp_server.IO.
load_json
(state: idp_engine.Problem.Problem, jsonstr: str)[source]¶ Parse a json string and update assignments in a state accordingly.
- Parameters
state – a Problem object containing the concepts that appear in the json
jsonstr – the user’s assignments in json
- Returns
the assignments
- Return type
idp_engine.Assignments