This PR is a rework of the cli and json configuration parsers, especially to replace the current json parser that was based on MongoDB's libbson to a json-c based one.
The libbson is not made to parse json files, and the way we are using it leads to complicated and very fragile field handling for configuration files. It also has the problem of not being available on most distributions, which greatly reduces the distributions where the sensor can be built. (especially as a core dependency, the json parser can't be disabled)
This PR is a rework of the cli and json configuration parsers, especially to replace the current json parser that was based on MongoDB's libbson to a json-c based one.
The libbson is not made to parse json files, and the way we are using it leads to complicated and very fragile field handling for configuration files. It also has the problem of not being available on most distributions, which greatly reduces the distributions where the sensor can be built. (especially as a core dependency, the json parser can't be disabled)