Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
77d8a1b
Add System.Text.Json serializer for ConvertTo-Json via PSJsonSerializ…
yotsuda Dec 17, 2025
489617d
Refactor PowerShellJsonWriter to use iterative approach instead of re…
yotsuda Dec 17, 2025
086ee55
Remove Depth upper limit and allow -1 for unlimited when PSJsonSerial…
yotsuda Dec 17, 2025
b8b0c6b
Add backward compatibility tests that run in both V2 enabled and disa…
yotsuda Dec 17, 2025
ed2ac16
Fix description and doc comment to reflect no upper depth limit
yotsuda Dec 17, 2025
264335e
Fix CodeFactor style issues in SystemTextJsonSerializer.cs
yotsuda Dec 17, 2025
159b763
Use $EnabledExperimentalFeatures for V2 feature detection in tests
yotsuda Dec 17, 2025
e7dfff9
Refactor ConvertToJsonCommandV2 to use standard JsonSerializer approach
yotsuda Dec 17, 2025
dce72a4
Fix null value serialization in PSCustomObject properties
yotsuda Dec 17, 2025
31cd184
Add ReferenceHandler.IgnoreCycles to prevent circular reference loops
yotsuda Dec 17, 2025
553f0d1
Fix depth tracking to not limit primitive types in JsonConverterPSObject
yotsuda Dec 19, 2025
68ca191
Split V1/V2 into separate files and add -JsonSerializerOptions parame…
yotsuda Dec 20, 2025
ef5bf6d
Replace AsyncLocal depth tracking with writer.CurrentDepth for simple…
yotsuda Dec 20, 2025
e211385
Remove AsyncLocal completely by using instance variable for warning t…
yotsuda Dec 20, 2025
e03574c
Apply -Depth parameter to -JsonSerializerOptions mode when MaxDepth i…
yotsuda Dec 20, 2025
df6dac2
Remove unused ReferenceHandler.IgnoreCycles and fix misleading comment
yotsuda Dec 20, 2025
207f9e5
Make -Depth and -JsonSerializerOptions mutually exclusive
yotsuda Dec 20, 2025
d7ac8b9
Remove -JsonSerializerOptions parameter to focus on V1 compatibility
yotsuda Dec 21, 2025
1e096a8
Reorganize tests for V1/V2 compatibility and update Guid test expecta…
yotsuda Dec 22, 2025
e6e64b3
Remove unused resources and update experimental feature description
yotsuda Dec 22, 2025
cc9bc2e
Align V2 maximum depth with V1 (100) and update tests
yotsuda Dec 22, 2025
c57b9e5
Fix CodeFactor style warnings in ConvertToJsonCommandV2
yotsuda Dec 22, 2025
b8403d3
Add missing blank lines for CodeFactor style compliance
yotsuda Dec 22, 2025
b37e6ae
Address code review feedback from iSazonov
yotsuda Dec 22, 2025
9e8ae20
Remove unused using alias and simplify XML documentation
yotsuda Dec 22, 2025
db4cd5e
Refactor JObject handling into dedicated JsonConverterJObject
yotsuda Dec 23, 2025
faba85d
Add JsonStringEscapeHandling enum with backward compatibility
yotsuda Dec 23, 2025
0e07b33
Address code review feedback: remove unused using, optimize allocatio…
yotsuda Dec 23, 2025
6cb364b
Add blank line before single-line comment to satisfy CodeFactor
yotsuda Dec 23, 2025
9ec4957
Add blank line after closing brace to satisfy CodeFactor
yotsuda Dec 23, 2025
b201e6a
Update src/Microsoft.PowerShell.Commands.Utility/commands/utility/Web…
yotsuda Dec 24, 2025
0752a8b
Update src/Microsoft.PowerShell.Commands.Utility/commands/utility/Web…
yotsuda Dec 24, 2025
5d617f1
Update src/Microsoft.PowerShell.Commands.Utility/commands/utility/Web…
yotsuda Dec 24, 2025
fdbe94a
Match V1 serialization for nested raw objects
yotsuda Dec 24, 2025
c7b7ab1
Sync ConvertTo-Json.Tests.ps1 with PR #26639
yotsuda Dec 24, 2025
aa9a89f
Replace hardcoded IsPrimitiveType with dynamic STJ native scalar dete…
yotsuda Dec 25, 2025
ef7f737
Add blank line before single-line comment per SA1515
yotsuda Dec 25, 2025
385cf51
Unify JsonConverterPSObject and JsonConverterRawObject with basePrope…
yotsuda Dec 26, 2025
6913cb1
Address code review feedback: use custom converters and simplify Seri…
yotsuda Dec 27, 2025
da0c8cb
Remove unnecessary currentDepth local variable
yotsuda Dec 28, 2025
2ecc51e
Use JsonTypeInfoKind for type classification and add JsonConverterTyp…
yotsuda Dec 30, 2025
2c54920
Unify duplicate code in SerializeEnumerable and WriteProperty to use …
yotsuda Dec 31, 2025
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