SourcedJSON

JSON value with origin path.

TODO: generalize (templated) to any value. TODO: generalize (templated) to any URL.

Constructors

this
this(Path path, bool silentPassUponFailure)

Uses parameter Path in ctor instead of fromFile. See: https://docs.rs/from_file/latest/from_file/

Destructor

~this
~this()
Undocumented in source.

Members

Functions

writeBack
void writeBack(bool pretty)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

outdated
bool outdated;

< Is true if value needs has been changed since read from path.

path
Path path;

< Path of value serialized to string.

value
JSONValue value;

< JSON value.

Examples

/+ TODO: const x = SourcedJSON(Path("")); +/

Meta