I have python server that serialize some dictionary by using the marshal module. And send serialized message to the c# client socket. How I can deserialize this message on the client (c#) side. I can not use IronPython because of problems with the speed of execution.
Or do you know other ways to serialize/deserialize "messages" between Python and c#.
What about JSON? You could write, or maybe even find, a de-Python-pickle-er for C#, but something like a dict is easy to represent in JSON, and that's a well known, well defined standard for which reliable, fast serilaize/deserialize libraries exist in nearly every language. There's also XML of course, but JSON's usually easier to work with.
marshal is generally Python-specific. If you want cross-language support then you should use json instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With