JsonSource

class JsonSource(entries: Map<String, String>, origin: String? = null) : MapBackedSource(source)

JSON source parsed by kotlinx-serialization-json. Objects become dotted keys ({"database": {"url": "x"}} is database.url), arrays of scalars become ["a", 1] lists, and arrays of objects are numbered (servers.0.name). Numbers keep their text as written, and null values are skipped, so the spec's default applies.

Constructors

Link copied to clipboard
constructor(entries: Map<String, String>, origin: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val fallbackKeyFormats: List<KeyFormat>
Link copied to clipboard
open override val keyFormat: KeyFormat
Link copied to clipboard
open override val name: String

Functions

Link copied to clipboard
open override fun children(key: String): Map<String, String>?
Link copied to clipboard
open override fun get(key: String): String?