Controller add renderJSON method