"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.read = exports.fetch = void 0;
const fs_1 = require("../../../../util/fs");
async function fetch(http, url) {
    const response = await http.getJson(url);
    return response.body;
}
exports.fetch = fetch;
async function read(path) {
    const fileContent = await (0, fs_1.readLocalFile)(path, 'utf8');
    return JSON.parse(fileContent);
}
exports.read = read;
//# sourceMappingURL=json.js.map