proc toJsonStr(n: YAML; prettyPrint = false; indent = 2): string {....raises: [
IOError, OSError, Exception, ValueError, KeyError, YAMLException,
JsonParsingError], tags: [ReadIOEffect, RootEffect, WriteIOEffect],
forbids: [].}
Parse YAML contents to stringified JSON
proc toJsonStr(n: YAML; ruler: seq[string]; prettyPrint = false; indent = 2): string {....raises: [
IOError, OSError, Exception, ValueError, KeyError, YAMLException,
JsonParsingError], tags: [ReadIOEffect, RootEffect, WriteIOEffect],
forbids: [].}
YAML parser to JSON string representation, with rules checker