reduce json returned