idp_web_server.IO

This module contains code to create and analyze messages to/from the web client.

metaJSON(state)[source]

Format a response to meta request.

Parameters

idp – the response

Returns out

a meta request

load_json(assignments, jsonstr, keep_defaults)[source]

Parse a json string and update assignments in a state accordingly.

Parameters
  • assignments – an assignments containing the concepts that appear in the json

  • jsonstr (str) – assignments in json

  • keep_defaults (bool) – whether to not delete the default assignments

  • jsonstr

  • keep_defaults

Post

assignments is updated with information in json