Framework: packages:json active - x684867/nemesis_server GitHub Wiki
This package extends the JSON.commented object to allow a JSON file to contain both
C-style comments **_AND_** JavaScript code, wrapped in functions. This "active JSON"
is intended to merge code and data into a single object capable of transfer across
processes and hosts.
JSON-commented.js
fs (node.js builtin)
Filename | Description |
---|---|
JSON-active.js | JavaScript (node.js) module file which provides an init() method |
JSON.active.parse() -->eval() a string into the run-time JavaScript. JSON.active.load() -->load a file then eval() the string result.