Possible to change display page from somewhere eg on_json_message?

Hello
I would like to change the current display page depending on a string received via on_json_message. Is it possible to do? display.pages.show throws an error:

/config/doorbell.yaml:133:22:   required from here
/piolibs/ArduinoJson/src/ArduinoJson/Variant/ConverterImpl.hpp:24:20: error: no matching function for call to 'convertFromJson(ArduinoJson6185_D1::VariantConstRef&, esphome::display::DisplayPage*&)'
     convertFromJson(src, result);  // Error here? See https://arduinojson.org/v6/unsupported-as/

and id(my_display).pages.show is not available at all.