package com.github.inikolaev.vertx.web.kotlin

import io.vertx.core.http.HttpServerResponse
import io.vertx.core.json.JsonObject

fun HttpServerResponse.endJson(json: JsonObject) = this.end(json.encode())

Add extension method to respond with JSON
Add extension method to respond with JSON

inikolaev/vertx-web-kotlin