Answer the question
In order to leave comments, you need to log in
How to overcome colon in object JSON keys (nconf)?
Using nconf, I get file data for widespread use in the project
nconf
.add('filename', {
"type": "file",
"file": path.join(__dirname, 'filename/myfile.json')
})
{
"Widescreen 16:10": {
"test": 11111
}
}
{
"Widescreen 16": {
"10": {
"test": 11111
}
}
}
Answer the question
In order to leave comments, you need to log in
Don't use nconf and stuff like that. And load JSON files via var config = requere('config.js'); or via fs and then JSON.parse()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question