package ext;
import com.google.gson.Gson;
import play.templates.JavaExtensions;
public class JsonExtensions extends JavaExtensions {
public static String toJson(Object o) {
Gson gson = new Gson();
return gson.toJson(o);
}
}
seems like it would be something that it would make sense to go back into the main framework as an extension.
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>
--
Guillaume Bort, http://guillaume.bort.fr
For anything work-related, use g...@zenexity.fr; for everything else,
write guillau...@gmail.com
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.