FghjNode.opIndexAssign

struct FghjNode
pure
void
opIndexAssign
(,
scope const(char)[][] keys...
)

Examples

import fghj;
auto text = `{"foo":"bar","inner":{"a":true,"b":false,"c":"32323","d":null,"e":{}}}`;
auto root = FghjNode(text.parseJson);
auto value = FghjNode(`true`.parseJson);
root["inner", "g", "u"] = value;
assert(root["inner", "g", "u"].data == true);

Meta