Support for json-c ; Fixed compile warnings