Revert "修改JSON/XML输出函数，不使用渲染变量避免混乱"

This reverts commit a2af45f051359fc304ad896b7e3dfdc4c1ed2789.
Revert "精简渲染部分代码"

This reverts commit f05fffe9e1c51c71508a832be90a93731893ea65.