How can I retrieve the body request or JSON within a Frappe endpoint

How can I retrieve the body request or JSON within a Frappe endpoint?

Additionally, when the endpoint receives JSON in the body, the following error occurs: “frappe.exceptions.ValidationError: Invalid request arguments.”