How to use ArduinoJSON with Ciao RestServer

I did something like this:

void loop() {
  CiaoData data = Ciao.read("restserver");
  if(!data.isEmpty()){
    String id = data.get(0);
    String request = data.get(2);
    request.toUpperCase();
    String command[3];
    Ciao.splitString(request,"/",command,3);
    execute_rest(command,id);
  }
}

void execute_rest(String cmd[], String id) {
  if (cmd[0] == "STATUS") {
    statusCommand(cmd,id);
  }
  else
    Ciao.writeResponse("restserver",id,"sorry, i don't understand :(");
}

void statusCommand(String cmd[], String id) {
  JsonObject& root = jsonBuffer.createObject();
    root["on_off"] = digitalRead(6);
    root["Temperature"] = 20;
    // Ciao.writeResponse("restserver",id, root);      // this throws exceptions
  root.PrintTo(???);                                   // this is the example line
}

I wold like to send that JSON to my REST API http://ip/arduino/status/ The above expample is part from: https://arduinojson.org/doc/encoding/ But im not able to combine it with ciao somehow.

Maybe somewone has more experience with ciao here?

Yun or Uno WiFi?

Juraj: Yun or Uno WiFi?

Industrial101 = ~yun

Why is that relevant? Are there differences?

novski: Industrial101 = ~yun

Why is that relevant? Are there differences?

the Uno WiFi version is unusable