Skip to content

Fix ConvertFrom-Json to handle mutlilines - #1519

Merged
sergei (vors) merged 1 commit into
masterfrom
vors/json
Jul 26, 2016
Merged

sergei (vors) merged 1 commit into
masterfrom
vors/json

Conversation

@vors

Copy link
Copy Markdown
Collaborator

Fix #956

Add Newtonsoft.Json.JsonSerializationException to catch block
that determines which mode to use: single-string or multi-string

@vors

Copy link
Copy Markdown
Collaborator Author

Francisco Gamino (@Francisco-Gamino) can you take a look, please?

@Francisco-Gamino

Copy link
Copy Markdown
Contributor

The code change looks good. Please just fix the indentation of the #endregion.

Fix #956

Add Newtonsoft.Json.JsonSerializationException to catch block
that determines which mode to use: single-string or multi-string
@@ -0,0 +1,16 @@
Describe 'ConvertFrom-Json' {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be an existing file for JSON tests. Just a second.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I guess not. They're explicitly testing Newtonsoft.JSON interop (SDK/Json.Tests.ps1).

@andyleejordan

Copy link
Copy Markdown
Member

LGTM.

@vors
sergei (vors) merged commit 5256938 into master Jul 26, 2016
@vors
sergei (vors) deleted the vors/json branch July 26, 2016 21:37
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Fix ConvertFrom-Json to handle mutlilines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants