Added caching methods to render_json

Signed-off-by: Craig Sullivan <craig@melbourne-systems.com>