Thank you Rueben, I managed to get it working!
Out of curiosity what is the other content-type (application/x-www-form-urlencoded) used for?
Also, if I wanted to just have an API for just adding, deleting and editing users, should I create a seperate API in production or is the management API okay?