[net](../../index.md) / [com.drake.net.convert](../index.md) / [JSONConvert](index.md) / [<init>](./-init-.md) # <init> `JSONConvert(success: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "0", code: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "code", message: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` = "msg")` 常见的JSON转换器实现, 如果不满意继承实现自定义的业务逻辑 ### Parameters `success` - 后端定义为成功状态的错误码值 `code` - 错误码在JSON中的字段名 `message` - 错误信息在JSON中的字段名