by codys · 8y ago · 0 comments
It seems like it could be better to use some easier to parse binary format that allows the same flexibility that json does, like cbor/msgpack/bson.
Using JSON here is a very strange choice.
I agree! Perhaps the userspace administrative tool (which links json-c) parses it and converts it to something more like an ioctl struct for the kernel.
(If you want to have a bad day, you can send a patch to Linus to put a JSON parser in the kernel.)
It's kind of shitty that it was called BSON, because it falls so far short of the generality that JSON has.