Код: Выделить всё
const obj = {};
obj[
"https://stexmmt.mathhub.info/:sTeX?a=courses/FAU/SMAI/problems&p=math/prob&d=find-mv&l=en&e=problem"
] = {
responses: [],
uri: "https://stexmmt.mathhub.info/:sTeX?a=courses/FAU/SMAI/problems&p=math/prob&d=find-mv&l=en&e=problem",
};
obj[
"https://mathhub.info?a=courses/Jacobs/GenCS/problems&p=dmath/prob&d=hair-color-ind&l=en&e=problem"
] = {
responses: [],
uri: "https://mathhub.info?a=courses/Jacobs/GenCS/problems&p=dmath/prob&d=hair-color-ind&l=en&e=problem",
};
obj[
"https://mathhub.info?a=courses/Jacobs/GenCS/problems&p=dmath/prob&d=hair-color-ind&l=en&e=problem"
].responses[
"https://mathhub.info?a=courses/Jacobs/GenCS/problems&p=dmath/prob&d=hair-color-ind&l=en&e=problem"
] = "dssas";
obj[
"https://stexmmt.mathhub.info/:sTeX?a=courses/FAU/SMAI/problems&p=math/prob&d=find-mv&l=en&e=problem"
].responses[
"https://stexmmt.mathhub.info/:sTeX?a=courses/FAU/SMAI/problems&p=math/prob&d=find-mv&l=en&e=problem/problem_5"
] = "test for";
console.log(obj);
console.log(JSON.stringify(obj));
Вывод:
Подробнее здесь: https://stackoverflow.com/questions/796 ... -stringify