Encodes data with the framework's JSON conventions.
data
static String encodeJson(Object? data) => _encoder.convert(data);