Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
af39326
Add PSJsonSerializerV2 for ConvertTo-Json using TruncatingConverterFa…
yotsuda Jan 2, 2026
657d034
Update src/Microsoft.PowerShell.Commands.Utility/commands/utility/Web…
yotsuda Jan 4, 2026
ef6fc9e
Update src/Microsoft.PowerShell.Commands.Utility/commands/utility/Web…
yotsuda Jan 4, 2026
4095b20
Rename converters with PSJson prefix and refactor code structure
yotsuda Jan 4, 2026
783f3b3
Replace explicit type checks with Debug.Assert in CanConvert
yotsuda Jan 4, 2026
165ed2e
Simplify WriteValue method to match Serialize pattern
yotsuda Jan 4, 2026
f3c6ce8
Simplify IsScalar and WriteValue by removing redundant checks and mov…
yotsuda Jan 4, 2026
9c63357
Refactor to share warning state between PSJsonPSObjectConverter and f…
yotsuda Jan 5, 2026
92f28b8
Handle extended/adapted properties in WriteDepthExceeded like V1
yotsuda Jan 5, 2026
d2e296f
Add ETS property support for arrays and test for array with ETS seria…
yotsuda Jan 5, 2026
cc0b10a
Refactor to pass ConvertToJsonCommandV2 to converters instead of fact…
yotsuda Jan 5, 2026
87e8cba
Remove custom cache for IsStjNativeScalarType, rely on STJ internal c…
yotsuda Jan 5, 2026
8efb723
Fix CI test failures for ETS on scalar types, Int64 enum, and char 12…
yotsuda Jan 5, 2026
4c5e3ff
Refactor PSJsonPSObjectConverter to accept cmdlet directly instead of…
yotsuda Jan 5, 2026
9774f06
Remove nullable annotation from cmdlet parameter as it is never null
yotsuda Jan 5, 2026
3b37433
Exclude System.Object from scalar type check as it serializes to empt…
yotsuda Jan 5, 2026
6ac53b8
Improve comment for BigInteger scalar type check
yotsuda Jan 5, 2026
e969de9
Add XML doc comment explaining ShouldSkipProperty scope for script-de…
yotsuda Jan 5, 2026
eeea80a
Add tests for depth exceeded behavior with PSObject ETS properties
yotsuda Jan 6, 2026
f6ff545
Fix DateTime ETS test to use UTC and add missing Add-Member
yotsuda Jan 6, 2026
67a1bbd
Fix WriteProperty to preserve ETS properties on PSObject at depth exc…
yotsuda Jan 6, 2026
58a8bfa
Update src/Microsoft.PowerShell.Commands.Utility/commands/utility/Web…
yotsuda Jan 6, 2026
046d1fc
Address review comments: improve comments and fix exception handling
yotsuda Jan 6, 2026
e4365e0
Fix scalar ETS handling to match V1 behavior
yotsuda Jan 6, 2026
43ac7af
Refactor converters to reference cmdlet directly instead of factory
yotsuda Jan 6, 2026
e341a12
Refactor ETS property handling using Count pattern and fix null fallb…
yotsuda Jan 7, 2026
7e34ed8
Use reflection properties first to match V1 serialization behavior
yotsuda Jan 14, 2026
9b84e8c
Add test for hidden property serialization in PowerShell classes
yotsuda Jan 15, 2026
6984cf3
Fix Version scalar type handling and cross-platform test issues
yotsuda Jan 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ namespace Microsoft.PowerShell.Commands
/// The ConvertTo-Json command.
/// This command converts an object to a Json string representation.
/// </summary>
/// <remarks>
/// This class is hidden when PSJsonSerializerV2 experimental feature is enabled.
/// </remarks>
[Experimental(ExperimentalFeature.PSJsonSerializerV2, ExperimentAction.Hide)]
[Cmdlet(VerbsData.ConvertTo, "Json", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=2096925", RemotingCapability = RemotingCapability.None)]
[OutputType(typeof(string))]
public class ConvertToJsonCommand : PSCmdlet, IDisposable
Expand Down
Loading
Loading