Currently this API returns an JSON document, for compatibility purposes should return ml_inference.inference.layout.PageLayout object