use jsonpipe instead of direct pipe usage