how to use TJSONObject for ASM

procedure TFViewDashboard.BuscarEmpresas;
  procedure OnResult(Response: TXDataClientResponse);
  begin
    notaDataset.Close;
    notaDataset.SetJsonData(TJSObject(Response.Result)['value']);
    notaDataset.Open;
    valax := string(TJSObject(Response.Result)['value']);
    asm
      am4core.useTheme(am4themes_animated);
      var chart = am4core.create("grafico3", am4charts.XYChart);
      chart.data = [[{
"year": 2005, "income": 23.5},
{ "year": 2006, "income": 26.2,}]    <<<<<<<<<<<<<<<  replace here
  end;
begin
  XDataClient.RawInvoke('IModelDashboard.CurvaABCEmpresa', [10, 0, ''], @OnResult);
end;


Sorry, the description of the question was missing.
I would like to use a variable in ASM for JSON values.

You are casing the Response.Result as TJSObject, but in your asm you are using an array. What exactly variable and values are you trying to access from asm?

In summary, you can just declare any pascal local variable, set a value to it, and read it from asm code directly.

thank you very much

I was able to make a graph with am4core in tmsweb, could I post a working example?

thank you

Yes, it would be very interesting!