Added automatic rendering for JSON requests