api

http4k / org.http4k.format / Argo

Argo

object Argo : Json<JsonNode> (source)

Functions

Name Summary
asCompactJsonString fun JsonNode.asCompactJsonString(): String
asJsonArray fun <T : Iterable<JsonNode>> T.asJsonArray(): JsonNode
asJsonObject fun String.asJsonObject(): JsonNode
fun <LIST : Iterable<Pair<String, JsonNode>>> LIST.asJsonObject(): JsonNode
asJsonValue fun String?.asJsonValue(): JsonNode
fun Int?.asJsonValue(): JsonNode
fun Double?.asJsonValue(): JsonNode
fun Long?.asJsonValue(): JsonNode
fun BigDecimal?.asJsonValue(): JsonNode
fun BigInteger?.asJsonValue(): JsonNode
fun Boolean?.asJsonValue(): JsonNode
asPrettyJsonString fun JsonNode.asPrettyJsonString(): String
bool fun bool(value: JsonNode): Boolean
elements fun elements(value: JsonNode): Iterable<JsonNode>
fields fun fields(node: JsonNode): List<Pair<String!, JsonNode!>>
text fun text(value: JsonNode): String
textValueOf fun textValueOf(node: JsonNode, name: String): String!
typeOf fun typeOf(value: JsonNode): JsonType

Inherited Functions

Name Summary
array open fun <T : NODE> array(value: T): NODE
open fun <T : NODE> array(value: Iterable<T>): NODE
body open fun body(description: String? = null, contentNegotiation: ContentNegotiation = None): BiDiBodyLensSpec<NODE>
boolean open fun boolean(value: Boolean): NODE
compact open fun compact(node: NODE): String
compactify open fun compactify(input: String): String
invoke open operator fun <T> invoke(fn: Json<NODE>.() -> T): T
json open fun <IN : Any> BiDiLensSpec<IN, String>.json(): BiDiLensSpec<IN, NODE>
lens open fun <IN : Any> lens(spec: BiDiLensSpec<IN, String>): BiDiLensSpec<IN, NODE>
nullNode open fun nullNode(): NODE
number open fun number(value: Int): NODE
open fun number(value: Double): NODE
open fun number(value: Long): NODE
open fun number(value: BigDecimal): NODE
open fun number(value: BigInteger): NODE
obj open fun obj(): NODE
open fun <T : NODE> obj(value: Iterable<Pair<String, T>>): NODE
open fun <T : NODE> obj(vararg fields: Pair<String, T>): NODE
parse open fun parse(input: String): NODE
prettify open fun prettify(input: String): String
pretty open fun pretty(node: NODE): String
string open fun string(value: String): NODE

Extension Functions

Name Summary
hasBody fun <NODE> Json<NODE>.hasBody(expected: NODE): Matcher<HttpMessage>
fun <NODE> Json<NODE>.hasBody(expected: Matcher<NODE>): Matcher<HttpMessage>
fun <NODE> Json<NODE>.hasBody(expected: String): Matcher<HttpMessage>
with fun <T> T.with(vararg modifiers: (T) -> T): T