Need help in kibana plugin development project to know how to fetch json data object send from kibana coreStart http post method(Client Side) to kibana irouter post method (at server end)

this has been resolved, success code is as below :

Server Side :

import { IRouter } from '../../../../core/server';
import { schema } from '@kbn/config-schema';

export function defineRoutes(router: IRouter) {
  router.post(
    {
      path: '/api/my_test_plug/example',
      validate: {
        body: schema.object({
          // Define your JSON schema here
          // Example: title, description, tags, etc.
          title: schema.string(),
          description: schema.string(),
        }),
      },
    },
    async (context, request, response) => {
      const { body } = request;

      console.log(body)

      return response.ok({ body: `Where's my post data?` });
    }
  );
}

Client Side :

export const MyTestPlugApp = ({ basename, notifications, http, navigation }: MyTestPlugAppDeps) => {
  // Use React hooks to manage state.

  const dataToSend = {
    title: 'Test Title',
    description: 'Testing alert creation through the API',
  };

  const onClickHandler = async () => {
    await http.post('/api/my_test_plug/example', { body: JSON.stringify(dataToSend) });

      // Use the core notifications service to display a success message.
      notifications.toasts.addSuccess(
        i18n.translate('myTestPlug.dataUpdated', {
          defaultMessage: 'Data updated',
        })
      );
  };