Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.0.0
-
None
Description
Summary
If the JSON request payload is sent with content type "application/json", it needs to be string-encapsulated JSON, not bare JSON.
this works:
"{\"Clusters\": { \"version\": \"HDP-2.2\" }}"
this does not:
{"Clusters": { "version": "HDP-2.2" }}
If the JSON request payload is sent with content type "text/plain", string-encapsulation is not required.
Why require a JSON payload with application/json content type be string-encapsulated?