registerJsonContentType

Registers a custom content type to be treated as JSON for highlighting purposes.

Example: registerJsonContentType(ContentType("application/x-ndjson"))

Parameters

contentType

The content type to register.


Registers a custom content type (given as a string) to be treated as JSON.

Java-friendly overload of registerJsonContentType.

Example: registerJsonContentType("application/x-ndjson")