Question:
I’ve checked number of suggested thread here and tried the solution there but still unable to extract what I want from JSON array.What I have so far is
print_r($response->response->data);
[period]
, [value]
, etc but when I try withThere is no problem when I do
print_r($response->response);
or print_r($response->response->data);
but shows nothing when I go beyond data e.g. print_r($response->response->data->value);
May be is trivial but what is wrong here?
Answer:
As you see,data
is an array of objects, so you should access it as an array.If you have better answer, please add a comment about this, thank you!