encodeArgsUnsafe

fun encodeArgsUnsafe(args: Any?, serializer: JSONSerializer): JSONObject(source)

Encodes the given arguments into a JSON representation without type safety checks.

Throws

If the provided arguments cannot be cast to the expected type.