When request is sent with the correct header getBody() automatically converts JSON to array