JSON documentation files

- use `json` instead of `yaml` format, to improve the support of special characters (e.g. `åäö`)
- add `get_doc` and `put_doc` to the `cdb` class, and remove previous functions
- update tests