Skip to content

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

Draft
OMpawar-21 wants to merge 1 commit into
enhc/betafrom
enhc/DX-9374
Draft

feat: migrate HTTP layer from Newtonsoft.Json to System.Text.Json#41
OMpawar-21 wants to merge 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
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.

1 participant