package com.indeed.proctor.service.config;

/**
 * Context variable configuration, which also requires type conversion.
 */
public class JsonContextVarConfig extends JsonVarConfig {
    private String type;

    // If a context var is missing during extraction, we'll just use this default.
    // If null, the user did not specify a default value for this variable.
    private String defaultValue;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }
}

@@ -37,16 +37,73 @@
 onfig;%0A%0A
+import org.codehaus.jackson.map.annotate.JsonSerialize;%0A%0A
 /**%0A * C
@@ -573,32 +573,93 @@
  = type;%0A    %7D%0A%0A
+    @JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)%0A
     public Strin

Exclude null defaultValues from /config/context.