Skip to content

Conversation

@StefH
Copy link
Collaborator

@StefH StefH commented Jun 5, 2025

No description provided.

This comment was marked as outdated.

@StefH StefH requested a review from Copilot June 6, 2025 08:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds the GroupBy extension method for both System.Text.Json and NewtonsoftJson, enhancing query capabilities on JSON collections. Key changes include:

  • Adding tests for the new GroupBy functionality in both JSON test projects.
  • Introducing two overloads for GroupBy in each extension class (one with default config and one accepting a custom config).
  • Updating resource handling by switching to "using" declarations when parsing JSON.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
test/System.Linq.Dynamic.Core.SystemTextJson.Tests/SystemTextJsonTests.cs Adds GroupBy tests and updates JSON parsing to use disposal with "using".
test/System.Linq.Dynamic.Core.NewtonsoftJson.Tests/NewtonsoftJsonTests.cs Adds GroupBy tests for the NewtonsoftJson implementation.
src/System.Linq.Dynamic.Core.SystemTextJson/SystemTextJsonExtensions.cs Introduces GroupBy extension methods for JsonDocument with overloads and updated conversion logic for grouping.
src/System.Linq.Dynamic.Core.NewtonsoftJson/NewtonsoftJsonExtensions.cs Adds GroupBy extension methods for JArray with overloads and updated conversion logic for grouping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants