Skip to content

Cosmos: Modernize JSON serialization - Update pipeline#38024

Draft
JoasE wants to merge 2 commits intodotnet:mainfrom
JoasE:feature/#34567-UpdatePipeline
Draft

Cosmos: Modernize JSON serialization - Update pipeline#38024
JoasE wants to merge 2 commits intodotnet:mainfrom
JoasE:feature/#34567-UpdatePipeline

Conversation

@JoasE
Copy link
Copy Markdown
Contributor

@JoasE JoasE commented Mar 27, 2026

Refactors DocumentSource to serialize to stream instead of DOM.
Leverages JsonValueReaderWriter for serialization.
For backwards compatibility:

  • Adds custom JsonValueReaderWriter's where found to be needed.
  • Use UnsafeRelaxedJsonEscaping (encoding special (html) characters)

Partly removes __jObject stuff, but not fully so the binding and query pipelines still work.

TODO: Maybe string compare every test database we have with old vs new serialization?
Adds some todos aswell. Some will be picked up in next prs

Part of: #34567

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant