/****************************************************************************/ internal string Transform(string data, TransformerContext context, ExtensionFunctions extensionFunctions) { var output = JObject.Parse("{}"); var expando = data.JsonToExpando(); this.Evaluate(output, new ExpressionContext(expando, "__root", context, extensionFunctions, templates: this.Templates, functions: this.Functions)); return(output.ToString()); }
/****************************************************************************/ public string Transform(string data, TransformerContext context = null) { return(_transform.Transform(data, context, _extensionFunctions)); }