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.


构造方法摘要
Jsoner()
           
 
方法摘要
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 void clear()
           
static boolean isJson(String source)
           
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
<T> T
toObject(String json)
           
static
<T> T
toObject(String json, Class<T> clazz)
           
static
<T> T
toObject(String json, Class<T> clazz, com.alibaba.fastjson.parser.Feature... features)
           
static
<T> T
toObject(String json, Class<T> clazz, com.alibaba.fastjson.parser.deserializer.ParseProcess processor)
           
static
<T> T
toObject(String json, Class<T> clazz, com.alibaba.fastjson.parser.deserializer.ParseProcess processor, com.alibaba.fastjson.parser.Feature... features)
           
static
<T> T
toObject(String json, Type type)
           
static
<T> T
toObject(String json, Type type, com.alibaba.fastjson.parser.Feature... features)
           
static
<T> T
toObject(String json, Type type, com.alibaba.fastjson.parser.deserializer.ParseProcess processor)
           
static
<T> T
toObject(String json, Type type, com.alibaba.fastjson.parser.deserializer.ParseProcess processor, com.alibaba.fastjson.parser.Feature... features)
           
static
<T> T
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)

isJson

public static boolean isJson(String source)

clear

public static void clear()


Copyright © 2017. All rights reserved.