Switch from deprecated json_object_object_get to json_object_object_get_ex