change json for ContextSchema. The optional fields are not serialized anymore if they hold the default value