-
Notifications
You must be signed in to change notification settings - Fork 6
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
Chore/update deps #49
base: develop
Are you sure you want to change the base?
Conversation
val serializer = jsonParser.context.getContextualOrDefault(this) | ||
jsonParser.toJson(serializer, this) | ||
val jsonParser = Json | ||
jsonParser.encodeToJsonElement(this) |
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.
I think I am missing a serializer here. Any ideas what is required? @mirceanis
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.
not really :(
I am not familiar with the latest kotlinx.serialization requirements, unfortunately.
@@ -78,16 +66,19 @@ object ArbitraryMapSerializer : KSerializer<Map<String, Any?>> { | |||
} | |||
|
|||
override fun deserialize(decoder: Decoder): Map<String, Any?> { | |||
val asJsonObject: JsonObject = decoder.decodeSerializableValue(JsonObjectSerializer) | |||
assert(decoder is JsonDecoder) {"Only JsonDecoder supported, found " + decoder::class.java} |
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.
Is this safe to assert?
Thank you for the contribution! |
@friedger @mirceanis Bump Can we get this fixed, please? :) |
Hi @PeterTheOne, this repo has fallen below my radar as I've been focusing more on the typescript side of things. |
This PR