postJson

fun postJson(path: String, data: Any = Unit)

Send a POST with a payload to the path on the API specified.

Parameters

data

String values are assumed to be valid JSON. All other values will be mapped to JSON.