Added support for JSON-format repos