Back to project page NativeClient-Android.
The source code is released under:
Apache License
If you think the Android project NativeClient-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.microsoft.aad.taskapplication.helpers; /* www. j av a 2s . c o m*/ import com.google.gson.Gson; import com.google.gson.GsonBuilder; import java.io.Reader; import java.io.StringReader; public class JsonHelper { static <T> T convertJsonToObject(final String json, final Class<T> clazz) { final Reader reader = new StringReader(json); final Gson gson = new GsonBuilder().create(); return gson.fromJson(reader, clazz); } }