minor fixes for missing functions in old json-c
* upstream json_object_get_string_len returns 0 if object is not type string
* small indentation fix
Merge pull request #648 from leprechau/feature-fix

minor fixes for missing functions in old json-c