ExecuteScriptResult.Json
property · ExecuteScriptResult · cAlgo.API
DesktopCLICloud
Returned JSON result of execution.
Definition
public string Json {get;}
executeScriptResult.Json: str
Returns string
Examples
var webView = new WebView { Width = 300, Height = 100 };
webView.NavigateToStringAsync("<html><body>Hello</body></html>");
webView.NavigationCompleted += args => webView.ExecuteScriptAsync("JSON.stringify({ bid: 1.085 })", result =>
{
if (result.IsSuccessful)
Print("JSON result: {0}", result.Json);
});
Chart.AddControl(webView);
webView = WebView()
webView.NavigateToStringAsync("<html><body>Hello</body></html>")
webView.NavigationCompleted += lambda args: webView.ExecuteScriptAsync("JSON.stringify({ bid: 1.085 })", lambda result: api.Print(f"JSON result: {result.Json}"))
api.Chart.AddControl(webView)