cn.dreampie.common.util.json
类 Jsoner
java.lang.Object
cn.dreampie.common.util.json.Jsoner
public class Jsoner
- extends Object
Created by ice on 14-12-31.
|
方法摘要 |
static void |
addConfig(Type type,
com.alibaba.fastjson.serializer.ObjectSerializer serializer,
com.alibaba.fastjson.parser.deserializer.ObjectDeserializer deserializer)
|
static void |
addDeserializer(Type type,
com.alibaba.fastjson.parser.deserializer.ObjectDeserializer deserializer)
|
static void |
addDeserializerFeature(com.alibaba.fastjson.parser.Feature... features)
|
static void |
addSerializer(Type type,
com.alibaba.fastjson.serializer.ObjectSerializer serializer)
|
static void |
addSerializerFeature(com.alibaba.fastjson.serializer.SerializerFeature... features)
|
static String |
toJSON(Object object)
|
static String |
toJSON(Object object,
com.alibaba.fastjson.serializer.SerializeConfig config)
|
static String |
toJSON(Object object,
com.alibaba.fastjson.serializer.SerializeConfig config,
com.alibaba.fastjson.serializer.SerializeFilter filter)
|
static String |
toJSON(Object object,
com.alibaba.fastjson.serializer.SerializeConfig config,
com.alibaba.fastjson.serializer.SerializeFilter filter,
com.alibaba.fastjson.serializer.SerializerFeature... features)
|
static String |
toJSON(Object object,
com.alibaba.fastjson.serializer.SerializeConfig config,
com.alibaba.fastjson.serializer.SerializerFeature... features)
|
static String |
toJSON(Object object,
com.alibaba.fastjson.serializer.SerializeFilter[] filters)
|
static String |
toJSON(Object object,
com.alibaba.fastjson.serializer.SerializeFilter[] filters,
com.alibaba.fastjson.serializer.SerializerFeature... features)
|
static String |
toJSON(Object object,
com.alibaba.fastjson.serializer.SerializerFeature... features)
|
static
|
toObject(String json)
|
static
|
toObject(String json,
Class<T> clazz)
|
static
|
toObject(String json,
Class<T> clazz,
com.alibaba.fastjson.parser.Feature... features)
|
static
|
toObject(String json,
Class<T> clazz,
com.alibaba.fastjson.parser.deserializer.ParseProcess processor)
|
static
|
toObject(String json,
Class<T> clazz,
com.alibaba.fastjson.parser.deserializer.ParseProcess processor,
com.alibaba.fastjson.parser.Feature... features)
|
static
|
toObject(String json,
Type type)
|
static
|
toObject(String json,
Type type,
com.alibaba.fastjson.parser.Feature... features)
|
static
|
toObject(String json,
Type type,
com.alibaba.fastjson.parser.deserializer.ParseProcess processor)
|
static
|
toObject(String json,
Type type,
com.alibaba.fastjson.parser.deserializer.ParseProcess processor,
com.alibaba.fastjson.parser.Feature... features)
|
static
|
toObject(String json,
com.alibaba.fastjson.TypeReference<T> type,
com.alibaba.fastjson.parser.Feature... features)
|
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Jsoner
public Jsoner()
addConfig
public static void addConfig(Type type,
com.alibaba.fastjson.serializer.ObjectSerializer serializer,
com.alibaba.fastjson.parser.deserializer.ObjectDeserializer deserializer)
addSerializerFeature
public static void addSerializerFeature(com.alibaba.fastjson.serializer.SerializerFeature... features)
addDeserializerFeature
public static void addDeserializerFeature(com.alibaba.fastjson.parser.Feature... features)
addSerializer
public static void addSerializer(Type type,
com.alibaba.fastjson.serializer.ObjectSerializer serializer)
addDeserializer
public static void addDeserializer(Type type,
com.alibaba.fastjson.parser.deserializer.ObjectDeserializer deserializer)
toJSON
public static String toJSON(Object object)
toJSON
public static String toJSON(Object object,
com.alibaba.fastjson.serializer.SerializerFeature... features)
toJSON
public static String toJSON(Object object,
com.alibaba.fastjson.serializer.SerializeFilter[] filters)
toJSON
public static String toJSON(Object object,
com.alibaba.fastjson.serializer.SerializeFilter[] filters,
com.alibaba.fastjson.serializer.SerializerFeature... features)
toJSON
public static String toJSON(Object object,
com.alibaba.fastjson.serializer.SerializeConfig config)
toJSON
public static String toJSON(Object object,
com.alibaba.fastjson.serializer.SerializeConfig config,
com.alibaba.fastjson.serializer.SerializerFeature... features)
toJSON
public static String toJSON(Object object,
com.alibaba.fastjson.serializer.SerializeConfig config,
com.alibaba.fastjson.serializer.SerializeFilter filter)
toJSON
public static String toJSON(Object object,
com.alibaba.fastjson.serializer.SerializeConfig config,
com.alibaba.fastjson.serializer.SerializeFilter filter,
com.alibaba.fastjson.serializer.SerializerFeature... features)
toObject
public static <T> T toObject(String json)
toObject
public static <T> T toObject(String json,
Class<T> clazz)
toObject
public static <T> T toObject(String json,
Class<T> clazz,
com.alibaba.fastjson.parser.Feature... features)
toObject
public static <T> T toObject(String json,
Class<T> clazz,
com.alibaba.fastjson.parser.deserializer.ParseProcess processor)
toObject
public static <T> T toObject(String json,
Class<T> clazz,
com.alibaba.fastjson.parser.deserializer.ParseProcess processor,
com.alibaba.fastjson.parser.Feature... features)
toObject
public static <T> T toObject(String json,
com.alibaba.fastjson.TypeReference<T> type,
com.alibaba.fastjson.parser.Feature... features)
toObject
public static <T> T toObject(String json,
Type type)
toObject
public static <T> T toObject(String json,
Type type,
com.alibaba.fastjson.parser.Feature... features)
toObject
public static <T> T toObject(String json,
Type type,
com.alibaba.fastjson.parser.deserializer.ParseProcess processor)
toObject
public static <T> T toObject(String json,
Type type,
com.alibaba.fastjson.parser.deserializer.ParseProcess processor,
com.alibaba.fastjson.parser.Feature... features)
Copyright © 2015. All rights reserved.