use json_object_object_get_ex() when available

... because the previous call is now deprecated
build issue: json_bool seems also not present on old json-c