JSON sources
Location: Sources.Json module.
JsonStringSource parses well-formed JSON documents from in-memory strings and supports manual external updates:
var source = new JsonStringSource("<json content>");
source.Push("<json content>") // update with new content
JsonFileSource parses JSON files and automatically watches for changes:
var source = new JsonFileSource("settings/config.json");
A file that does not exist simply leads to a null
node, which implies default settings values unless something is explicitly required.
Related pages
Configuration sourcesLast updated
Was this helpful?