PUT and POST bodies must be JSON. Added missing conversion.
Merge branch 'master' into staging