json: Fix compilation with json-c 0.10

Reported-by: Peter Czanik <czanik@balabit.hu>
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Merge remote-tracking branch 'origin/3.5/master'