Create renderJSON convenience function