API Response Format

Hello Everyone,

I am creating API but the response I am getting is not in the proper format mentioned in the document.
https://frappeframework.com/docs/v14/user/en/api/rest

I need the response in this format so please guide me on this. How can I change the format of the responses?

image_2023_04_11T10_07_41_608Z

Thanks in Advance