title: How to extract value of json object key, value pairs using json-c
body: <p>I'm trying to use this function, as the only example I've been able to find is a deprecated version of this function, which has two parameters.
  The newer function has three, but when I try to run compile, I get the error:  dereferencing pointer to incomplete type
  deprecated function : <code>*jobj = json_object_object_get(jobj,key)</code>
  new function : <code>*jobj = json_object_object_get_ex(jobj,key,value)</code></p>
  
  <p>I've just tried the following :
  json_object_get_string(json_object_object_get(new_obj, "foo"))</p>
  
  <p>But I'm getting the error message that this is deprecated. If I used the newer function, I need to know 'value'. But that's the point, I only know the key and I want to extract the value. Any help would be appreciated as I haven't been able to find any examples other than the above</p>