com.taobao.metamorphosis.utils
类 JSONUtils

java.lang.Object
  继承者 com.taobao.metamorphosis.utils.JSONUtils

public class JSONUtils
extends Object


构造方法摘要
JSONUtils()
           
 
方法摘要
static Object deserializeObject(String s, Class<?> clazz)
           
static Object deserializeObject(String s, org.codehaus.jackson.type.TypeReference<?> typeReference)
           
static String serializeObject(Object o)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

JSONUtils

public JSONUtils()
方法详细信息

serializeObject

public static String serializeObject(Object o)
                              throws Exception
抛出:
Exception

deserializeObject

public static Object deserializeObject(String s,
                                       Class<?> clazz)
                                throws Exception
抛出:
Exception

deserializeObject

public static Object deserializeObject(String s,
                                       org.codehaus.jackson.type.TypeReference<?> typeReference)
                                throws Exception
抛出:
Exception


Copyright © 2010–2013. All rights reserved.