Beanable Interface Deprecation

Hi,

We are looking into replacing deprecated code, etc. The Beanable interface is one such item. Can anyone point me to a document or an explanation of what I need to do to replace it please?
Thanks,

Jim

The javadoc states: @Deprecated since 5.2. If you want a JSON-producing REST endpoint, then use a proper JAXRS resource.

This is documented here: https://developer.atlassian.com/server/framework/atlassian-sdk/rest-plugin-module/