implements responseTransform for JSON sources