How to update multiple records using JSON body ?

How to update multiple records using JSON body ?

I need to update multiple records in leads table using the API. However, the documentation only includes examples with XML and not with JSON. Could someone please provide an example of how to achieve the same using JSON request body ?