config: fix issue with pointer reference to json_t object

Fixes #24