Remove stream from json function.