Replace get post ajax page with Kotlin version
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / utils / Json.kt
index 71c8e81..ef3c95d 100644 (file)
@@ -7,7 +7,7 @@ import com.fasterxml.jackson.databind.node.ObjectNode
 
 fun jsonObject(block: ObjectNode.() -> Unit): ObjectNode = ObjectNode(instance).apply(block)
 
-fun jsonObject(vararg properties: Pair<String, Any>) = jsonObject {
+fun jsonObject(vararg properties: Pair<String, Any?>) = jsonObject {
        properties.forEach {
                it.second.let { value ->
                        when (value) {