setParameters

fun setParameters(vararg params: Any): String

Converts an array of key-value pairs to a JSON string.

Return

the JSON string

Parameters

params

the key-value pairs to be converted to JSON

Throws

if the number of parameters is odd (i.e., not in key-value pairs)