Add diagram relevant json to klass view.