22 lines
754 B
JavaScript
22 lines
754 B
JavaScript
const fs = require('fs');
|
|
|
|
async function checkProjectJson() {
|
|
const data = JSON.parse(fs.readFileSync('Geodaten/project.json', 'utf8'));
|
|
console.log("Keys in project.json:", Object.keys(data));
|
|
if (data.wea) {
|
|
console.log("Found wea key with", data.wea.features.length, "features");
|
|
} else {
|
|
console.log("wea key NOT found");
|
|
}
|
|
if (data.netzanschluss) {
|
|
console.log("Found netzanschluss key");
|
|
} else {
|
|
console.log("netzanschluss key NOT found");
|
|
}
|
|
// Search for any key containing "netz"
|
|
const netzKeys = Object.keys(data).filter(k => k.toLowerCase().includes('netz'));
|
|
console.log("Keys containing 'netz':", netzKeys);
|
|
}
|
|
|
|
checkProjectJson().catch(err => console.error(err));
|