Skip to content

feat: migrate HTTP layer from Newtonsoft.Json to System.Text.Json#41

Merged
OMpawar-21 merged 1 commit into
enhc/betafrom
enhc/DX-9374
Jul 3, 2026
Merged

feat: migrate HTTP layer from Newtonsoft.Json to System.Text.Json#41
OMpawar-21 merged 1 commit into
enhc/betafrom
enhc/DX-9374

Conversation

@OMpawar-21

Copy link
Copy Markdown

Summary

  • Replace all Newtonsoft.Json usage in the HTTP abstraction layer with System.Text.Json
  • Rename OpenJObjectResponse()OpenJsonObjectResponse() returning System.Text.Json.Nodes.JsonObject
  • Swap Newtonsoft.Json.JsonSerializer with System.Text.Json.JsonSerializerOptions across the request/response pipeline
  • Replace JsonConvert.SerializeObject() with JsonSerializer.Serialize() for query parameter building

Replace all Newtonsoft usage across the HTTP abstraction layer as part of the
STJ migration. Renames OpenJObjectResponse() to OpenJsonObjectResponse() returning
System.Text.Json.Nodes.JsonObject, swaps JsonSerializer (Newtonsoft) for
JsonSerializerOptions throughout the request/response pipeline, and replaces
JsonConvert.SerializeObject with JsonSerializer.Serialize for query param building.

Files changed:
- CMA/Http/IResponse.cs
- CMA/Http/ContentstackResponse.cs
- CMA/HTTPRequestHandler.cs
- CMA/Http/ContentstackHttpRequest.cs
@OMpawar-21 OMpawar-21 requested a review from reeshika-h July 2, 2026 11:34
@OMpawar-21 OMpawar-21 marked this pull request as ready for review July 3, 2026 11:46
@OMpawar-21 OMpawar-21 requested a review from a team as a code owner July 3, 2026 11:46
@OMpawar-21 OMpawar-21 merged commit 4593fc1 into enhc/beta Jul 3, 2026
7 checks passed
@OMpawar-21 OMpawar-21 deleted the enhc/DX-9374 branch July 3, 2026 11:47
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.

2 participants