amnaredo / test

0 stars 0 forks source link

MessagePack: handle null values as None #274

Open amnaredo opened 3 years ago

amnaredo commented 3 years ago

Hi, I have a question about the library. Is there a possibility to treat null values as None? I encode the data in C# using (https://github.com/neuecc/MessagePack-CSharp) which places null values for not initialized public members. Then I try to read the encoded data from Scala, but get this error java.util.NoSuchElementException: None.get ID: 318 Original Author: vpodlnk

amnaredo commented 3 years ago

https://com-lihaoyi.github.io/upickle/#CustomConfiguration describes how to map null to None in the section about Options. Original Author: htmldoug