api

http4k / org.http4k.format / Argo

Argo

object Argo : Json<JsonNode>

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
decimal fun decimal(value: JsonNode): BigDecimal
elements fun elements(value: JsonNode): Iterable<JsonNode>
fields fun fields(node: JsonNode): List<Pair<String!, JsonNode!>>
integer fun integer(value: JsonNode): Long
text fun text(value: JsonNode): String
textValueOf fun textValueOf(node: JsonNode, name: String): String
typeOf fun typeOf(value: JsonNode): JsonType

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>
haveBody fun <NODE> Json<NODE>.haveBody(expected: NODE): Matcher<HttpMessage>
fun <NODE> Json<NODE>.haveBody(expected: Matcher<NODE>): Matcher<HttpMessage>
fun <NODE> Json<NODE>.haveBody(expected: String): Matcher<HttpMessage>