PUT and POST bodies must be JSON. Added missing conversion.