public class JSONReportUtils
extends java.lang.Object
构造器和说明 |
---|
JSONReportUtils() |
限定符和类型 | 方法和说明 |
---|---|
static boolean |
generalObjCheck(java.lang.Object object)
检查下是否是基本处理类型(date,double ,float)
|
static java.lang.Object |
generalObjConvert(java.lang.Object object)
基本类型通用转化
|
static java.lang.Object |
object2JSONable(java.lang.Object object) |
static java.lang.Object |
object2JSONable(java.lang.Object object,
int var1,
int var2)
obj转成标准json
|
static java.lang.String |
objToJSONString(java.lang.Object object)
object转jsonString(String 可在前端jsonDecode)
|
public static java.lang.String objToJSONString(java.lang.Object object) throws JSONException
object
- JSONException
public static boolean generalObjCheck(java.lang.Object object)
object
- public static java.lang.Object generalObjConvert(java.lang.Object object)
object
- public static java.lang.Object object2JSONable(java.lang.Object object) throws JSONException
JSONException
public static java.lang.Object object2JSONable(java.lang.Object object, int var1, int var2) throws JSONException
object
- var1
- var2
- JSONException