/** */ class type_output_json implements type_output { public readonly kind : string = "json"; public readonly data : {}; public constructor(data : {}) {this.data = data;} /** */ public render_element( element : type_element ) : string { return lib_plankton.call.distinguish( element, { }, { "fallback": (element) => JSON.stringify(element, undefined, "\t"), } ); } } /** */ output_kind_register( "json", (data, sub) => ( new type_output_json( { } ) ) );