Repository navigation
Write the OME-Zarr metadata with System.Text.Json - #9
Merged
Merged
Conversation
Replace the hand-written JsonText writer with Utf8JsonWriter. The documents keep their members and order, and the relaxed encoder leaves characters such as < > & ' + and most non-ASCII text unescaped, as before. Some characters in the image name are now written as \u escapes: those outside the BMP, DEL and C1 controls, and format, separator, private-use and unassigned code points; \u escapes now use upper-case hex digits. On .NET 10 numbers are written as before. On .NET Framework, System.Text.Json writes non-integers with 17 significant digits (0.242 as 0.24199999999999999), which parse to the same values. The netstandard2.0 and netstandard2.1 builds now depend on the System.Text.Json package; net10.0 uses the shared framework's copy.
The .NET Framework smoke apps load the netstandard2.0 core with the System.Text.Json package, so a dependency that fails to load now fails them.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the core package's hand-written JSON writer with
System.Text.Json.Utf8JsonWriter(compact, relaxed escaping since the documents are served as JSON files).\uXXXXescapes.zarr.json, so the .NET Framework smoke builds load System.Text.Json.