Change method name: renderAsJson -> renderToJson. Added isRenderToJson()