I am using a webservice via an api call and YAJL. I am using :
yajl_buf_load_tree((%ADDR(rspn)
: %len(%trim(rspn))
: json_msg)
This returns an object with a few parameters, including an array called logs, I am fetching it with yajl.:
loglist = yajl_object_find(json_data: 'log');
The loglist is says it's type is a pointer(16);
My issue is that after looping through the array, eventually I lose connection to the api and I am no longer able to reestablish a connection after 160 + iterations. I figured the best way to avoid this
would be to save the results from the loglist and place it into an array. But I am not really sure how to do this.
1. What kind of array do I need to store this data ?
2. Do I have to use pointers ?
3. What's the best approach
Thank you for any help that I receive.
yajl_buf_load_tree((%ADDR(rspn)
: %len(%trim(rspn))
: json_msg)
This returns an object with a few parameters, including an array called logs, I am fetching it with yajl.:
loglist = yajl_object_find(json_data: 'log');
The loglist is says it's type is a pointer(16);
My issue is that after looping through the array, eventually I lose connection to the api and I am no longer able to reestablish a connection after 160 + iterations. I figured the best way to avoid this
would be to save the results from the loglist and place it into an array. But I am not really sure how to do this.
1. What kind of array do I need to store this data ?
2. Do I have to use pointers ?
3. What's the best approach
Thank you for any help that I receive.
Comment