public void GetJson(string routePath, object parameters, IJavascriptCallback javascriptCallback) {
     Task.Run(async () => {
         using (javascriptCallback) {
             ChromelyResponse chromelyResponse = await RequestTaskRunner.RunAsync(routePath, parameters, null);
             string jsonResponse = chromelyResponse.EnsureJson();
             var response = new CallbackResponseStruct(jsonResponse);
             await javascriptCallback.ExecuteAsync(response);
         }
     });
 }
 public void PostJson(string routePath, object parameters, object postData, IJavascriptCallback javascriptCallback) {
     Task.Run(async () => {
         using (javascriptCallback) {
             Log.Info("Handler Data is " + postData);
             ChromelyResponse chromelyResponse = await RequestTaskRunner.RunAsync(routePath, parameters, postData);
             string jsonResponse = chromelyResponse.EnsureJson();
             var response = new CallbackResponseStruct(jsonResponse);
             await javascriptCallback.ExecuteAsync(response);
         }
     });
 }