fromString

fun fromString(content: String, origin: String? = null): JsonSource(source)

Throws

if content is not valid JSON. origin, such as the file name, labels the source in ConfigLoader.explain reports.