fromResource

fun fromResource(path: String, optional: Boolean = false): JsonSource(source)

Reads a bundled file (see readResourceText for each platform); optional allows it to be missing.