reimplemented rendering json scalar views