Open tanmaydesai89 opened 10 years ago
did you have a look at the sample and check if you can modify the templates according to your needs?
Hi @joscha : I am not much of a java guy, but PlayAuthenticate returns Result. Can you point me to the right direction. Struggling to find way since yesterday. I need to use this module for Android app.
Result is generated from a twirl template. Twirl templates can have any format. If you change Globals.java to use your own routes with Twirl templates that return JSON it should work.
public static Result index() {
return ok( Json.toJson ("output your Json"));
}
Greetings.
I wanted to know if it is possible to send response as JSON. I don't want to render scala for front-end. For example, when I send form data with post request on mydomain.com/signup, is it possible that JSON data can be returned?