Can I download my form Submissions via Json Format

I am a new user to ODK, I am currently using ODK self-host.
I would like to know if there is a way I can download all of the form submissions via json format. I am looking to have the following details extracted ( metadata, the content and values of the forms, the attachments, etc) In Json format.

Thank you.

You can use Odata Endpoints
GET /v1/projects/{projectId}/forms/{xmlFormId}.svc/{table}