pipeline.py: add support for json urls