Text-based IPC for Userspace Implementations

Jason A. Donenfeld Jason at zx2c4.com
Wed May 17 16:00:17 CEST 2017


Hello list,

Re:JSON --

JSON is difficult to parse and requires large libraries, especially
for something like JSON-RPC. I'd rather not have these dependencies or
complications.

On the contrary, a simple key=value newline scheme can be parsed
trivially by anyone in a safe way, and allows for very quick in basic
implementations in nearly all environments, even bash. Even given a
JSON library, a stream of key=value is considerably easier and more
flexible in the parsing stage.

JSON is nice but it is not ideal for all environments.

Jason


More information about the WireGuard mailing list