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
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