public class JSONEncode extends Object
Voovan Framework. WebSite: https://github.com/helyho/Voovan Licence: Apache v2 License
| Modifier and Type | Field and Description |
|---|---|
static IntKeyMap<String> |
JSON_ENCODE_CACHE |
static boolean |
JSON_HASH |
| Constructor and Description |
|---|
JSONEncode() |
| Modifier and Type | Method and Description |
|---|---|
static String |
fromObject(Object object)
将对象转换成JSON字符串
|
static String |
fromObject(Object object,
boolean allField)
将对象转换成JSON字符串
|
public static String fromObject(Object object) throws ReflectiveOperationException
object - 要转换的对象ReflectiveOperationException - 反射异常public static String fromObject(Object object, boolean allField) throws ReflectiveOperationException
object - 要转换的对象allField - 是否处理所有属性ReflectiveOperationException - 反射异常Copyright © 2020 Voovan. All rights reserved.