org.jboss.errai.enterprise.client.jaxrs
Class MarshallingWrapper
java.lang.Object
org.jboss.errai.enterprise.client.jaxrs.MarshallingWrapper
public class MarshallingWrapper
- extends Object
Wrapper around Marshalling
to provide a hook for format transformations.
- Author:
- Christian Sadilek
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarshallingWrapper
public MarshallingWrapper()
toJSON
public static String toJSON(Object obj)
toJSON
public static String toJSON(Map<Object,Object> obj)
toJSON
public static String toJSON(List<?> arr)
fromJSON
public static <T> T fromJSON(String json,
Class<T> type)
fromJSON
public static <T> T fromJSON(String json,
Class<T> type,
Class<?> elementType)
fromJSON
public static <K,V> Map<K,V> fromJSON(String json,
Class<?> type,
Class<K> mapKeyType,
Class<V> mapValueType)
fromJSON
public static Object fromJSON(String json)
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.