Pretty print JSON. Routing changes to handle trailing slashes properly.