diff options
Diffstat (limited to 'redfish-core/lib/task.hpp')
-rw-r--r-- | redfish-core/lib/task.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/redfish-core/lib/task.hpp b/redfish-core/lib/task.hpp index b6ca010ba4..dbc6278897 100644 --- a/redfish-core/lib/task.hpp +++ b/redfish-core/lib/task.hpp @@ -446,7 +446,9 @@ class Task : public Node {"TargetUri", p.targetUri}, {"HttpOperation", p.httpOperation}, {"HttpHeaders", p.httpHeaders}, - {"JsonBody", p.jsonBody.dump()}}; + {"JsonBody", + p.jsonBody.dump(2, ' ', true, + nlohmann::json::error_handler_t::replace)}}; } asyncResp->res.jsonValue["PercentComplete"] = ptr->percentComplete; } |