SELECT mdCD.* FROM mdCatalogoDatos mdCD, mdArchivos mdA WHERE mdA.tipo ='json' AND mdA.idCatalogoDatos = mdCD.idCatalogoDatos