I believe it would be a lot easier if you used in the component:
import { JSONEditor } from 'jsoneditor';
and also users could get the styles from
@import "~jsoneditor/dist/jsoneditor.min.css";
This would work by adding jsoneditor as a dependency. Including the libraries from the CDN is not really the angular/npm way