Skip to content

Commit 6904f19

Browse files
authored
[Automation]Fix the issue of automation in string (#14314)
* Fix the issue of automation in string * Update Changelog.md Co-authored-by: wyunchi-ms <[email protected]>
1 parent 8e7038c commit 6904f19

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Automation/Automation/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Fixed the issue that string cannot be serialized correctly. [#14215]
2122
* Added Support for Python3 Runbook Type
2223

2324
## Version 1.4.3

src/Automation/Automation/Common/PowershellJsonConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static string Serialize(object inputObject)
3636
}
3737
if (inputObject is string @str)
3838
{
39-
return str.Trim();
39+
return JsonConvert.SerializeObject(str.Trim());
4040
}
4141
else if (inputObject is object[] @objectArray)
4242
{

0 commit comments

Comments
 (0)