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