JsonQueryValue

sealed interface JsonQueryValue(source)

A query value (SPEC.md §2): equality is typed, numbers compare by decimal value, strings by code points.

Inheritors

Types

Link copied to clipboard
data class Bool(val value: Boolean) : JsonQueryValue

The boolean value, true or false, which matches neither strings nor numbers.

Link copied to clipboard
data class Json(val literal: String) : JsonQueryValue

Any JSON value given as JSON text, literal, typically an object or array literal. Objects match regardless of member order, arrays element by element. Numbers keep their full range, for example 0e3000000000.

Link copied to clipboard
data object Null : JsonQueryValue

JSON null, which matches only a stored null.

Link copied to clipboard
data class Num(val value: BigDecimal) : JsonQueryValue

The JSON number value, compared by decimal value: 1, 1.0 and 1e0 are the same value.

Link copied to clipboard
data class Str(val value: String) : JsonQueryValue

The JSON string value, compared by code points.