Fix build when using json-c parser instead of the bundled parser

Without this fix, the build fails if USE_JSONC is set.