New release devlooped/json5@v1.0.0 #91
kzu
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
✨ Implemented enhancements
Json5 Parser
Full JSON5 spec parser for .NET 10+ built entirely on top of the public
System.Text.JsonAPI surface.All JSON5 extensions are supported:
{ foo: 1 }'hello''line1\↵line2'0xFF.5,2.+1Infinity// …and/* … */[1, 2,]\v,\0,\xHHFlexible Output Targets
Parse JSON5 to any
System.Text.Jsontype:Auto-Dedent Multi-line Strings
Json5ReaderOptions.AutoDedentautomatically strips common leading whitespace from multi-line string values, keeping source readable without polluting string content:Configurable Infinity / NaN Handling
Standard JSON has no representation for
InfinityandNaN. Control the behavior viaJson5ReaderOptions.SpecialNumbers:AsString(default)"Infinity","-Infinity", or"NaN"AsNullnullThrowJson5ExceptionJson5.Configuration Package
Integrates JSON5 files with
Microsoft.Extensions.Configuration, enabling JSON5 anywhere standard JSON config is used — with full support for comments, trailing commas, and unquoted keys:Stream-based loading is also supported via
AddJson5Stream, and allJson5ReaderOptions(special number handling, max depth, auto-dedent) are accessible through the source action overload.Full Changelog: https://github.com/devlooped/json5/commits/v1.0.0
Sponsors
The following sponsors made this release possible: @clarius, @MFB-Technologies-Inc, @khamza85, @sandrock, @drivenet, @Keflon, @tbolon, @kfrancis, @unoplatform, @rbnswartz, @jfoshee, @Mrxx99, @eajhnsn1, @Jonathan-Hickey, @KenBonny, @SimonCropp, @agileworks-eu, @arsdragonfly, @vezel-dev, @ChilliCream, @4OTC, @DominicSchell, @adalon, @torutek, @mccaffers, @SeikaLogiciel, @wizardness, @latonz.
Thanks 💜
🔗 View Release
Beta Was this translation helpful? Give feedback.
All reactions