Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package controllers;
 
 import models.Person;
 
 public class JsonController {
     private static final int AGE = 24;
 
     public Response render() {
        Person person = new Person("Peter""Parker");
        return Response.withOk().andJsonBody(person);
    }
    
    public Response parse(Person person) {
        return Response.withOk().andContent("person"person);
    }
New to GrepCode? Check out our FAQ X