In the protocolbuffers-go we received a bug (
https://github.com/golang/protobuf/issues/1626) for our protojson implementation not accepting strings with whitespace (specifically "\n" in this case) in them.
I think I verified that the C++ implementation also doesn't accept them (see my last comment on the issue). We prefer to stay compatible to C++ as much as possible. So the question is: should this be allowed?
Thanks,
Nicolas with the hat of Go protobuf maintainer