diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ConvertFromJsonCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ConvertFromJsonCommand.cs
index 9ec8ef961c5..4057ea82a3a 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ConvertFromJsonCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ConvertFromJsonCommand.cs
@@ -35,29 +35,6 @@ public class ConvertFromJsonCommand : Cmdlet
#region overrides
- ///
- /// Prerequisite checks
- ///
- protected override void BeginProcessing()
- {
-#if CORECLR
- JsonObject.ImportJsonDotNetModule(this);
-#else
- try
- {
- System.Reflection.Assembly.Load(new AssemblyName("System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"));
- }
- catch (System.IO.FileNotFoundException)
- {
- ThrowTerminatingError(new ErrorRecord(
- new NotSupportedException(WebCmdletStrings.ExtendedProfileRequired),
- "ExtendedProfileRequired",
- ErrorCategory.NotInstalled,
- null));
- }
-#endif
- }
-
///
/// Buffers InputObjet contents available in the pipeline.
///
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ConvertToJsonCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ConvertToJsonCommand.cs
index 7feb75ce842..4def219c2c6 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ConvertToJsonCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ConvertToJsonCommand.cs
@@ -12,13 +12,8 @@
using System.Globalization;
using Dbg = System.Management.Automation;
using System.Management.Automation.Internal;
-#if CORECLR
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
-#else
-using System.Collections.Specialized;
-using System.Web.Script.Serialization;
-#endif
// FxCop suppressions for resource strings:
[module: SuppressMessage("Microsoft.Naming", "CA1703:ResourceStringsShouldBeSpelledCorrectly", Scope = "resource", Target = "WebCmdletStrings.resources", MessageId = "json")]
@@ -88,22 +83,6 @@ protected override void BeginProcessing()
ErrorCategory.InvalidOperation,
null));
}
-#if CORECLR
- JsonObject.ImportJsonDotNetModule(this);
-#else
- try
- {
- System.Reflection.Assembly.Load(new AssemblyName("System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"));
- }
- catch (System.IO.FileNotFoundException)
- {
- ThrowTerminatingError(new ErrorRecord(
- new NotSupportedException(WebCmdletStrings.ExtendedProfileRequired),
- "ExtendedProfileRequired",
- ErrorCategory.NotInstalled,
- null));
- }
-#endif
}
private List