fixed a few small libjson-c checks