How to send JSON request using XMLHttpRequest (XHR)

How to send JSON request using XMLHttpRequest (XHR)