How to pass parameters through JSON in a REST Connector?

How to pass parameters through JSON in a REST Connector?

Hi.
In my project I need to make a request through a REST API to authenticate to an external system.
The credentials (User and Password) for authentication need to be sent by JSON, but I still don't know how I can do it.
Could you help me clarify my doubt?