-
Notifications
You must be signed in to change notification settings - Fork 8
Jil.DeserializationException: Expected: ", null #20
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
Comments
I used Jil because it is much more performant than other libraries. Check out the benchmarks here: https://github.com/kevin-montrose/Jil#serialization |
Yes, I saw that but seems like I can't handle serialization/deserialization errors like I could do with Newtonsoft.Json. |
Most probably the issue is that genius changed the response that their api sends when getting a Song, so it isn't able to handle some unmapped fields |
Yes, I agree. I will open a PR if I will be able to solve the issue. |
Alright. If we couldn't solve this issue, we will switch this library to Newtonsoft.Json |
Calling GetSong with songid 6267625
throws this exception:
Seems like there is something wrong with the deserialization but I can't find the error since I'm not familiar with the Jil library. I can't find a way to handle deserialization errors with this library in order to get a more "talking error".
Have you considered using the more popular Newtonsoft.Json?
The text was updated successfully, but these errors were encountered: