public class JacksonJsonMarshaller extends Object
将响应对象流化成JSON。 ObjectMapper是线程安全的。
ObjectMapper
static void
load(String content, Object obj)
static String
marshal(Object content)
static <T> T
unmarshal(InputStream content, Class<T> objectType)
unmarshal(String content, Class<T> objectType)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static <T> T unmarshal(String content, Class<T> objectType)
public static <T> T unmarshal(InputStream content, Class<T> objectType)
public static void load(String content, Object obj)
public static String marshal(Object content)
Copyright © 2024. All rights reserved.