readYamlAsJson

fun readYamlAsJson(yaml: String, settings: LoadSettings = LOAD_SETTINGS): JsonElement

Reads yaml with settings as a JsonElement. The given settings need to prevent recursion.


fun readYamlAsJson(reader: Reader, settings: LoadSettings = LOAD_SETTINGS): JsonElement

Reads YAML from reader with settings as a JsonElement. The given settings need to prevent recursion.