esensar / kotlinx-serialization-msgpack

MsgPack support for kotlinx.serialization -- msgpack.org[kotlinx.serialization]
https://www.ensarsarajcic.com/kotlinx-serialization-msgpack/
MIT License
44 stars 9 forks source link

Deserialization fails for nested structures #57

Closed esensar closed 3 years ago

esensar commented 3 years ago

Version

Describe the bug Deserialization of nested structures fails - see https://github.com/esensar/kotlinx-serialization-msgpack/issues/55#issuecomment-951212520 for example This may also happen in other cases as well, since the issue is caused by trying to read a field name when end of structure is reached, thus moving the current position in input stream and breaking further deserialization

Expected behavior Deserialization should behave the same, regardless of level of nesting