render_json fix - more efficient way

Signed-off-by: pussbb <pussbb@gmail.com>