A stream.Transform() to convert from data to JSON.