public class OKJSON
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
OKJSON_ERROR_END_OF_BUFFER |
static int |
OKJSON_ERROR_EXCEPTION |
static int |
OKJSON_ERROR_EXPECT_COLON_AFTER_NAME |
static int |
OKJSON_ERROR_FIND_FIRST_LEFT_BRACE |
static int |
OKJSON_ERROR_INVALID_BYTE |
static int |
OKJSON_ERROR_NAME_INVALID |
static int |
OKJSON_ERROR_NAME_NOT_FOUND_IN_OBJECT |
static int |
OKJSON_ERROR_NEW_OBJECT |
static int |
OKJSON_ERROR_PORPERTY_TYPE_NOT_MATCH_IN_OBJECT |
static int |
OKJSON_ERROR_UNEXPECT |
static int |
OKJSON_ERROR_UNEXPECT_TOKEN_AFTER_LEFT_BRACE |
static int |
OPTIONS_DIRECT_ACCESS_PROPERTY_ENABLE |
static int |
OPTIONS_PRETTY_FORMAT_ENABLE |
static int |
OPTIONS_STRICT_POLICY |
| 构造器和说明 |
|---|
OKJSON() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
fileToObject(java.lang.String filePath,
java.lang.Class<T> clazz,
int options) |
static java.lang.Integer |
getErrorCode() |
static java.lang.String |
getErrorDesc() |
static int |
objectToFile(java.lang.Object object,
java.lang.String filePath,
int options) |
static java.lang.String |
objectToString(java.lang.Object object,
int options) |
static <T> T |
stringToObject(java.lang.String jsonString,
java.lang.Class<T> clazz,
int options) |
public static final int OPTIONS_DIRECT_ACCESS_PROPERTY_ENABLE
public static final int OPTIONS_PRETTY_FORMAT_ENABLE
public static final int OPTIONS_STRICT_POLICY
public static final int OKJSON_ERROR_END_OF_BUFFER
public static final int OKJSON_ERROR_UNEXPECT
public static final int OKJSON_ERROR_EXCEPTION
public static final int OKJSON_ERROR_INVALID_BYTE
public static final int OKJSON_ERROR_FIND_FIRST_LEFT_BRACE
public static final int OKJSON_ERROR_NAME_INVALID
public static final int OKJSON_ERROR_EXPECT_COLON_AFTER_NAME
public static final int OKJSON_ERROR_UNEXPECT_TOKEN_AFTER_LEFT_BRACE
public static final int OKJSON_ERROR_PORPERTY_TYPE_NOT_MATCH_IN_OBJECT
public static final int OKJSON_ERROR_NAME_NOT_FOUND_IN_OBJECT
public static final int OKJSON_ERROR_NEW_OBJECT
public static java.lang.Integer getErrorCode()
public static java.lang.String getErrorDesc()
public static int objectToFile(java.lang.Object object,
java.lang.String filePath,
int options)
public static java.lang.String objectToString(java.lang.Object object,
int options)
public static <T> T fileToObject(java.lang.String filePath,
java.lang.Class<T> clazz,
int options)
public static <T> T stringToObject(java.lang.String jsonString,
java.lang.Class<T> clazz,
int options)
Copyright © 2019. All Rights Reserved.