Get Users through to a JSON

I need through a JSON to get all the users that are registered in the database of my server, I have seen examples of the REST API documentation, but I have not been able to do my job, could someone guide me in this world that is new to me? , Thank you very much for your time