JsonSrcGen 1.0.0.1 RC 1 Released
JsonSrcGen 1.0.0.1 RC 1 has been released, This is the first release candidate leading up to the first production ready release. JsonSrcGen is now feature complete.
Changes
- Serialises from ReadOnlySpan<char> instead of from string
New Features
- Support skipping null values when serialising
- Support DateTimeOffset
Serialises from ReadOnlySpan<char> instead of from string
From Json conversions now serialize from ReadOnlySpan<char> instead of string. Strings can be converted to ReadOnlySpan<char> very cheaply but converting a ReadOnlySpan<char> to a string is expensive because it requires allocating memory. c# will automatically convert string to ReadOnlySpan<char> so you can continue to use strings.
Support skipping null values when serialising
The attribute [JsonIgnoreNull] can be added to a class to instruct JsonSrcGen to skip serializing null values.Real Json Testing program
If you would like to ensure your Json API works with JsonSrcGen then you can submit your tests to be included in our RealJsonTests folder via a merge request. The JsonSrcGen developers will ensure that any tests included here pass for each new release.
Tests must meet the following criteria:
- Use nunit
- Use local json data (no external API calls from the tests)
API's are eligible for free inclusion under any of the following conditions:
- The API is available to the public free of charge.
- The server or client code is available under an OSI approved opensource licence.
If your API does not meet the above conditions please contacts the maintainers to discus how you can support the development in exchange for having your tests included.
Call to testing
Please test JsonSrcGen against your Json and raise bug reports for any problem you find.
Please checkout the JsonSrcGen project on github: https://github.com/trampster/JsonSrcGen
No comments:
Post a Comment