-
Notifications
You must be signed in to change notification settings - Fork 620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for multiple alternative names during JSON parsing #1375
Conversation
TODO: measure performance impact and decide whether this flag should be enabled by default (or should the feature be flagged at all) |
2853e69
to
558b260
Compare
formats/json/commonTest/src/kotlinx/serialization/json/JsonCustomSerializersTest.kt
Outdated
Show resolved
Hide resolved
formats/json/commonTest/src/kotlinx/serialization/features/JsonAlternativeNamesTest.kt
Outdated
Show resolved
Hide resolved
formats/json/commonMain/src/kotlinx/serialization/json/internal/StreamingJsonDecoder.kt
Show resolved
Hide resolved
formats/json/commonMain/src/kotlinx/serialization/json/JsonNames.kt
Outdated
Show resolved
Hide resolved
formats/json/commonMain/src/kotlinx/serialization/json/JsonNames.kt
Outdated
Show resolved
Hide resolved
formats/json/commonMain/src/kotlinx/serialization/json/internal/JsonLexer.kt
Show resolved
Hide resolved
d9255c6
to
575d789
Compare
Is there anyway I could help? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
Please address a few minor stylistic comments and it's good to go
benchmark/src/jmh/kotlin/kotlinx/benchmarks/model/MacroTwitter.kt
Outdated
Show resolved
Hide resolved
formats/json/commonMain/src/kotlinx/serialization/json/internal/TreeJsonDecoder.kt
Outdated
Show resolved
Hide resolved
formats/json/commonTest/src/kotlinx/serialization/test/TestingFramework.kt
Outdated
Show resolved
Hide resolved
via DescriptorSchemaCache internal mechanism with guide, docs, and samples. Stabilize .toString() for SerialClassDescImpl; because HashMaps on different platforms have different iteration order. Disable primary collision detection for optimization purposes. Add benchmarks on skipping unknown fields.
Migrate to 1.5.0-M2 to do so (because vararg in serialinfo requires IR)
9f9c9f2
to
416a527
Compare
@KevinBassaDevelopment Thanks for suggestion! I've already did some performance evaluations, and as a result, we concluded that this flag can be safely set to 'true' by default. |
@JsonNames
annotationFixes #203