stripping uninteresting json before sending to client