Fix compatibility with json-c <= 0.10

Ubuntu 12.04LTS has 0.9.x, which is still commonly used.