Added JSON rendering for API