Package com.juliaaano.payload.shortcuts
Class JsonWrapper
- java.lang.Object
-
- com.juliaaano.payload.shortcuts.JsonWrapper
-
public class JsonWrapper extends Object
Static JSON wrapper for easier access.- Author:
- Dmitry Yakubovsky
-
-
Constructor Summary
Constructors Constructor Description JsonWrapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
fromJson(InputStream in, Class<T> clazz)
static <T> T
fromJson(String json, Class<T> clazz)
static String
toJson(Object obj)
-
-
-
Method Detail
-
fromJson
public static <T> T fromJson(InputStream in, Class<T> clazz) throws FileNotFoundException
- Throws:
FileNotFoundException
-
-