JSON-e built on the System.Text.Json namespace
$ dotnet add package JsonE.NetJsonE.Net implements the JSON-e format, a data-structure parameterization system for embedding context in JSON objects.
var template = JsonNode.Parse(
"{\"$eval\": \"(z / x) ** 2\"}"
);
var context = JsonNode.Parse(
"{\"x\": 10, \"z\": 20, \"s\": \"face\", \"t\": \"plant\"}"
)!.AsObject();
var result = JsonE.Evaluate(template, context);
// result: 4
If you found this library helpful and would like to promote continued development, please consider sponsoring the maintainers.