Also i tried JSON from WebApi app and it can deserialize correctly, now im trying out Winforms app over serial port with newtonsoft json and its not working.
What are my options for serialization from winforms to tinyclr?
Why is .ToString prettifying JSON?
Is .ToBson also doing this?
Im gonna try to convert that string to byte array and send it that way over serial port.
And yes, the lib always outputs pretty/human-readable json, which includes indenting and newlines. For maximum compression over the wire or on persistent storage, use bson. It’s the most compact representation.
I didn’t include an option for unformatted json because it would make the lib that much bigger. The more fancy/more options in the lib, the less room there is for your app, so I have tried to code this for the most useful mainstream cases.