-
Notifications
You must be signed in to change notification settings - Fork 619
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
Get SerialName value? #1482
Labels
Comments
fixed functions. Now all works
Is there a way to get value without reflection? |
Property serial name is stored in corresponding class' |
6 tasks
sschuberth
added a commit
to oss-review-toolkit/ort
that referenced
this issue
May 27, 2024
Based on the hint at [1] and the code at [2], leverage the serializer's descriptor to get the serial name of the element, without doing any "dummy serialization". [1]: Kotlin/kotlinx.serialization#1482 (comment) [2]: https://github.com/andregasser/bigbone/pull/332/files#diff-8d64fdf06ceb51ff99e649f64c911cf787b07aff678d5d7efd7bf13322db4983R90 Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
sschuberth
added a commit
to oss-review-toolkit/ort
that referenced
this issue
May 27, 2024
Based on the hint at [1] and the code at [2], leverage the serializer's descriptor to get the serial name of the element, without doing any "dummy serialization". [1]: Kotlin/kotlinx.serialization#1482 (comment) [2]: https://github.com/andregasser/bigbone/pull/332/files#diff-8d64fdf06ceb51ff99e649f64c911cf787b07aff678d5d7efd7bf13322db4983R90 Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can I get the SerialName annotation value in code?
With gson i use that extensions but after change
SerializedName
toSerialName
they return nullThe text was updated successfully, but these errors were encountered: