provide JSON api for streams